how to plot different markers in scatter plot

1 回表示 (過去 30 日間)
Ali Asghar
Ali Asghar 2020 年 6 月 9 日
コメント済み: Bjorn Gustavsson 2020 年 6 月 9 日
dear
I used scatter to display points with different colors but yet i need to display with different symbols like +,-,*, #,^,%
x = featuremeannormalizerow(1,2:6);
y = featuremeannormalizerow(1,8:12);
c = linspace(1,10,length(x)); % giving colors
scatter (x,y,15,c,'fill'),title('MAV 0 Degree') % fill use to fill color in circle
% Find xLimits for this graph.

回答 (1 件)

Bjorn Gustavsson
Bjorn Gustavsson 2020 年 6 月 9 日
This seems to work:
scatter(randn(9,1),randn(9,1),32,rand(9,1),'filled','d')
For markers of your choise - you know better than me.
HTH
  2 件のコメント
Ali Asghar
Ali Asghar 2020 年 6 月 9 日
dear
x and y have 5 values...
mean 5 points.
i need each point represent by different markers.
kindly put your segestion in below code
x = featuremeannormalizerow(1,2:6);
y = featuremeannormalizerow(1,8:12);
c = linspace(1,10,length(x)); % giving colors
scatter (x,y,15,c,'fill'),title('MAV 0 Degree')
Bjorn Gustavsson
Bjorn Gustavsson 2020 年 6 月 9 日
Then you might have to resort to a small loop. Store the markers in a cell-array or a simple char-array:
m_cell = {'s','d','h','o','p'};
m_char = 'sdhop';
You'll have to index accordingly

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by