Create a legend for complex numbers plot
古いコメントを表示
Hi,
I am plotting m by n matrices of complex numbers using
figure;
plot(poles_sys_a, 'kx'); hold on;
plot(poles_sys_b, 'ro'); hold off;
How can I insert a legend into that plot, that correctly labels the two sets?
legend('poles of sys_a','poles of sys_b');
doesn't work.
For example try
poles_sys_a = rand(3,10) + i*rand(3,10);
poles_sys_b = rand(3,1) + i*rand(3,1);
Thanks a lot.
JJ
採用された回答
その他の回答 (1 件)
madhan ravi
2018 年 11 月 16 日
編集済み: madhan ravi
2018 年 11 月 16 日
legend({'poles of sys_a','poles of sys_b'})
6 件のコメント
JJ
2018 年 11 月 19 日
madhan ravi
2018 年 11 月 19 日
provide your datas to test
Walter Roberson
2018 年 11 月 19 日
When I try in R2018b, I get a legend with black x and red o
JJ
2018 年 11 月 19 日
madhan ravi
2018 年 11 月 19 日
Even am using 2018b I get the same result as sir Walter
JJ
2018 年 11 月 19 日
カテゴリ
ヘルプ センター および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!