How can I make a scatter plot with different markers ?

70 次查看(过去 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..

采纳的回答

Walter Roberson
Walter Roberson 2020-5-19
scatter() can only specify one marker shape for each scatter object, so you will need to make multiple calls.

更多回答(1 个)

Stijn Haenen
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

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by