Matlab Plotting command problem
Afficher commentaires plus anciens
Hello,
I am having issues plotting a plot in Matlab with the following code below.
t=0:0.01:10
x1=11*cos(10*t+(3*pi/8));
plot(t,x1);
hold on
x2=3*cos(10*t-(pi/2));
plot(t,x2);
hold on
x3=x1+x2;
plot(t,x3);
legend('x1(t)=11*cos(10*t+(3*pi/8))','x2(t)=3*cos(10*t-(pi/2))','x3(t)=x1+x2');
title('2.c)');
For some reason when ever I run the above I get the following error and I am unable to determine what is wrong. I tried changing the wording of the plot commands just incase they had a problem but that didn't resolve the issue.
Any help is appreciated Thanks for your time!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Noncentral t Distribution dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

