Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Matlab help Show matlab scripts and plots for parts a,b, c Thanks % start stepsize stop t=linspace(0,2*pi(),100); y = sin(t); plot(t, y); title('Demo of Simple
Matlab help
2. Modify SimplePlotting.m to do the following: a) Plot esinxx 2 ( ) from x=0 to x=6 pi, using 500 points, titles and labels b) Plot excos(2)2x from x=0 to x=6pi, using 500 points, titles and labels c) Plot both on the same graph, using titles, labels and a legend Show matlab scripts and plots for parts a,b, c
Thanks
% start stepsize stop
t=linspace(0,2*pi(),100);
y = sin(t);
plot(t, y);
title('Demo of Simple Plotting');
xlabel('Time - s');
ylabel('y - ft');
pause % hit enter to go to the next plot
z=exp(-t/2) .* (3*t) .^ 2; % What are these dots????
plot(t,z);
title('Demo of Simple Plotting');
xlabel('Time - s');
ylabel('z - ft');
pause % hit enter to go to the next plot
plot(t,y,'r',t,z,'g');
title('Demo of Simple Plotting');
xlabel('Time - s');
ylabel('y and z - ft');
legend('sin(x)','(3t)^2 * exp(-t/2)');
pause % hit enter to go to the next plot
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