+1 (315) 557-6473 

Matlab Program to Create Graphical User Interface Assignment Solution.


Instructions

Objective
Write a program to create graphical user interface in matlab.

Requirements and Specifications

program to create graphical user interface in matlab

Source Code

FIND MATCH

function [bmatch] = findmatch(output)

bmatch = 0;

for i = 1:length(output)-1

for j = i+1:length(output)

if output(i) == output(j)

bmatch = 1;

end

end

if bmatch == 1;

break;

end

end

end

DATAGEN

function [dates] = dategen(N)

if N < 2

error("Input error, please use a group size of 2 or more.");

else

dates = randi([1,365], [N,1]);

end

end