Borrar filtros
Borrar filtros

combining a graphics

2 visualizaciones (últimos 30 días)
Ahmet
Ahmet el 6 de Mzo. de 2012
i have a discrete time graphics. I have a graphic model in 0-50 second and i have another grpahic for 50-100 second. How can i combine then in one grahic? Thanks from now.

Respuesta aceptada

Andreas Goser
Andreas Goser el 6 de Mzo. de 2012
As far as I understand your question, you are looking for the HOLD command. Example code:
plot(0:50,rand(1,51),'b')
hold on
plot(51:100,rand(1,50),'k')

Más respuestas (2)

Bart
Bart el 6 de Mzo. de 2012
y=f(0:50);
g=f(50:100);
x1 = 0:50;
x2 = 50:100;
plot(x1,y);
hold all
plot(x2,g);

Ahmet
Ahmet el 6 de Mzo. de 2012
thank you for your answers Mr. Bart and Goser. I used Gosers's solution and it works.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by