Borrar filtros
Borrar filtros

How can I create another y-axis on right side?

1 visualización (últimos 30 días)
Umang Dongre
Umang Dongre el 26 de Feb. de 2019
Comentada: Umang Dongre el 26 de Feb. de 2019
How can I create another two axis in same figure?
x=A0006_charge(:,1);
y=A0006_charge(:,2);
a=A0006_charge(:,3);
z=A0006_charge(:,4);
plot(a, x, a, y, a, z);
I tried "yyaxis right" but its not working.

Respuesta aceptada

Stephan
Stephan el 26 de Feb. de 2019
Editada: Stephan el 26 de Feb. de 2019
Hi,
use yyaxis. For example:
x=A0006_charge(:,1);
y=A0006_charge(:,2);
a=A0006_charge(:,3);
z=A0006_charge(:,4);
yyaxis left
plot(a, x, a, y)
yyaxis right
plot(a, z);
Best regards
Stephan
  1 comentario
Umang Dongre
Umang Dongre el 26 de Feb. de 2019
Thank You,
I tried this but it saying ...
Undefined function 'yyaxis' for input arguments of type 'char'.
Error in Charge (line 5)
yyaxis left

Iniciar sesión para comentar.

Más respuestas (0)

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