Plot with different shapes
Ältere Kommentare anzeigen
Hi, I am trying to build a plot with 2 y axis and want to assign different shapes to each variable and legend as well but facing error:
A = 2*rand(10,1);
B = 20*rand(10,1);
C = 30*rand(10,1);
grid on
box on
hold on
x = 1:10;
y = A;
yyaxis left
plot(x,y,'p')
z = [B C];
yyaxis right
plot(x,z,'^','o')
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


