Answered step by step
Verified Expert Solution
Link Copied!

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 plot_fav.m to plot your favorite non-polynomial (and non-constant) function. You can use the code in the primer as a starting point. Submit your script
file to Canvas Homework 1 assignment page.
starter:
x =[02468]; % basic plotting
plot( x );
plot( x,2*x );
axis([0808]);
x = pi*[-24:24]/24;
plot( x, sin(x));
xlabel( 'radians' );
ylabel( 'sin value' );
title( 'dummy' );
gtext( 'put cursor where you want text and press mouse' );
figure; % multiple functions in separate graphs
subplot(1,2,1);
plot( x, sin(x));
axis square;
subplot(1,2,2);
plot( x,2.*cos(x));
axis square;
figure; % multiple functions in single graph
plot( x,sin(x));
hold on; % hold on tells matlab to write on top
plot (x,2.*cos(x),'--', 'Linewidth', 2); % of the current plot
legend( 'sin', 'cos' );
hold off;
xlabel( 'radians' , 'Fontsize', 16); % add formatting options
ylabel( 'sin value' , 'Fontsize', 16);

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Finance The Role Of Data Analytics In Manda Due Diligence

Authors: Ps Publishing

1st Edition

B0CR6SKTQG, 979-8873324675

More Books

Students also viewed these Databases questions