Question: MATHLAB Create a script plot _ fav.m to plot your favorite non - polynomial ( and non - constant ) function. You can use the
MATHLAB Create a script plotfav.m to plot your favorite nonpolynomial and nonconstant function. You can use the code in the primer as a starting point. Submit your script
file to Canvas Homework assignment page.
starter:
x ; basic plotting
plot x ;
plot xx ;
axis;
x pi:;
plot x sinx;
xlabel 'radians' ;
ylabel 'sin value' ;
title 'dummy' ;
gtext 'put cursor where you want text and press mouse' ;
figure; multiple functions in separate graphs
subplot;
plot x sinx;
axis square;
subplot;
plot xcosx;
axis square;
figure; multiple functions in single graph
plot xsinx;
hold on; hold on tells matlab to write on top
plot xcosx 'Linewidth', ; of the current plot
legend 'sin', 'cos' ;
hold off;
xlabel 'radians' 'Fontsize', ; add formatting options
ylabel 'sin value' 'Fontsize', ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
