Why do I keep getting a subplot error?
Mostrar comentarios más antiguos
I keep getting this error for my script:
'Error in subplot (line 7) subplot(2,2,1)'.
Can anybody help me pls?
clear;
clc;
t = linspace(0,4*pi);
x = 2*sin(t);
y = 2*sin(t);
subplot(2,2,1)
plot(t , x , 'color' , 'm');
hold on
plot(t , y , 'color' , 'c');
subplot(2,2,2)
plot(t , x+y , 'color' , 'y');
subplot(2,2,3)
plot(t , x-y , 'color' , 'g');
subplot(2,2,4)
plot(t , x , 'color' , 'm');
hold on
plot(t , -y , 'color' , 'c');
2 comentarios
madhan ravi
el 10 de Mzo. de 2019
paste the complete error message that you get
Reyhane Farshbaf Shakib
el 10 de Mzo. de 2019
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Subplots en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!