right y-axis

14 visualizaciones (últimos 30 días)
Kaah
Kaah el 22 de Mzo. de 2012
Respondida: VBBV el 27 de Oct. de 2022
I want to have a right y-axis to serve as some reference to the left y-axis. I do not actually need the x-axis data of the right y-axis. Any help will be much appreciated. Thanks.

Respuestas (2)

Oleg Komarov
Oleg Komarov el 22 de Mzo. de 2012
Does this help?
set(gca,'box','on')

VBBV
VBBV el 27 de Oct. de 2022
X = rand(20,1);
Y = X.^2 + 4;
Y1 = Y./2;
plot(X,Y);
yyaxis right % use this as 2nd yaxis with ref to 1st
plot(X,Y1)

Categorías

Más información sobre Annotations 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