Question: MATLAB, this script must be used.It must add and give the user the option to repeat the whole process. Check the user input for errors.
MATLAB, this script must be used.It must add and give the user the option to repeat the whole process. Check the user input for errors.
k=1; while k==1 k=0; day=input('Enter day(1/2): '); if day~=1 && day~=2 k=1; disp('Invalid input. Try again') end end data=xlsread('temps.xlsx',day); time=data(:,1); temp=data(:,2); plot(time,temp) xlabel('time') ylabel('temperature')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
