Borrar filtros
Borrar filtros

Plotting a curve issue. i used to draw curves by semilogy but now i don't want it in logarithmetic form!

1 visualización (últimos 30 días)
consider the following
a=[3/4 1/2 1/4];
bb=[4.1 3.3 2.7];
cc=[5.9 5.2 4.7];
dd=[7.9 7.6 7.3];
plot(a,bb,'red','LineWidth',2); hold on
polt(a,cc,'blue','LineWidth',2); hold on
plot(a,dd,'black','LineWidth',2); grid
how can i plot those three curves?

Respuesta aceptada

Star Strider
Star Strider el 5 de Mayo de 2014
Editada: Star Strider el 5 de Mayo de 2014
Slightly changing your code:
a=[3/4 1/2 1/4];
bb=[4.1 3.3 2.7];
cc=[5.9 5.2 4.7];
dd=[7.9 7.6 7.3];
figure(1)
plot(a,bb,'red','LineWidth',2);
hold on
plot(a,cc,'blue','LineWidth',2);
plot(a,dd,'black','LineWidth',2);
hold off
grid
It works fine for me. Both axes are linear. Is that what you want?

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots 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!

Translated by