plot two waveforms at the same time
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi
Is there a way to plot two waveforms at the same time in a figure? Please let me know.
Thanks in advance
0 comentarios
Respuesta aceptada
Wayne King
el 28 de Oct. de 2011
x = randn(1e2,1);
y = randn(1e2,1);
t = 1:100;
plot(t,x,t,y);
legend('x-waveform','y-waveform');
% or
plot(t,x); hold on;
plot(t,y,'r');
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Acoustics, Noise and Vibration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!