Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started