Why isn't the plot showing up?
Mostrar comentarios más antiguos
I'm supposed to have two different figures, one with a resolution of 1, one with a resolution of 0.1. Why aren't the figures showing up? Any suggestions will help.
h = 1; x = 1:h:6; y = (sqrt((x.^4)+1))/(2+sin(x)); figure(1) plot(x,y)
h = .01;
x = 1:h:6;
y = (sqrt((x.^4)+1))/(2+sin(x)); % note that when you change the x vector, you need to recompute the y vect
figure(2)
plot(x,y)
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 25 de En. de 2016
Is this in a loop? Try drawnow
drawnow;
after you called plot().
Categorías
Más información sobre Graphics Performance en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!