How can I make a scatter plot with different markers ?
74 ビュー (過去 30 日間)
古いコメントを表示
Hi;
I want to make a scatter plot with different markers for the attached .txt file?
I want to show the three values in one graphic with for example "circle", "rectangular" and "diamond" as a scatter plot.
Could you please help me about Matlab code for this graphic?
Thanks a lot..
0 件のコメント
採用された回答
Walter Roberson
2020 年 5 月 19 日
scatter() can only specify one marker shape for each scatter object, so you will need to make multiple calls.
0 件のコメント
その他の回答 (1 件)
Stijn Haenen
2020 年 5 月 19 日
編集済み: Stijn Haenen
2020 年 5 月 19 日
maybe somthing like this:
symbol_list=['*';'+';'o';'<'];
for i=1:4
scatter(x(:,i),y(:,i),symbol_list(i))
hold on
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Scatter Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!