Question: Instructions: 1 . Create the program using MATLAB. 2 . Use the following code / program and transform it into a graphical interface ( GUI

Instructions:
1. Create the program using MATLAB.
2. Use the following code/program and transform it into a graphical interface (GUI):
clc;
clear;
x=input('Enter the value of x: ');
y=f(x);
if (y ==0)
fprintf('%d hours of being infected.
', y);
else
fprintf('Negative, has not being infected.
');
end
function y=f(x)
if (x<=11)
y=3*x+36;
elseif ((11<=x)&&(x<=33))
y=x*x-10;
elseif ((x<=33)&&(x<=64))
y=x-6;
else
y=0;
end
end
3. Provide the space for the user to enter the required data and obtain the results with the printed units.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!