Plot with different shapes
古いコメントを表示
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')
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


