Borrar filtros
Borrar filtros

using surfl

1 visualización (últimos 30 días)
Bahareh
Bahareh el 9 de Nov. de 2011
Hello all,
I need to plot two graphs using "surfl" in my code. I use the following commands:
figure()
surfl (a,b,c)
figure()
surfl(d,e,f)
However, I do not get both plots at the same time; I mean when the second plot comes, the first will disappear!? Can anybody tell me what I should do?
Many thanks in advance.

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 9 de Nov. de 2011
You mean you want to two figures, or two surface plots in one figure.
Your code should produce two figures, although usually you run figure() command with a figure number or without it at all.
[a,b,c]=peaks;
figure(1);
surfl(a,b,c);
[d,e,f]=sphere;
figure;
surfl(d,e,f);

Más respuestas (0)

Categorías

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

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by