how to plot scatterplot for one attribute?
1 回表示 (過去 30 日間)
古いコメントを表示
lets say I have a data for attribute xyz is 23 12 43 21 43 21 334 65 32 12 and i want a graph where x axis will hold the location of data and y axis will hold the value for example,if i want data in form of point(xvalue,yvalue), then(1,23),(2,12),(3,43),(4,21) should get plotted on the graph and it should be scatterplot.
Please tell me the syntax for same. Thank you in advance!
0 件のコメント
回答 (1 件)
José-Luis
2017 年 7 月 7 日
data = rand(10,1);
figure
plot(data); %implicit
figure
plot(1:size(data,1), data); %explicit
Please read the documentation on plot();
2 件のコメント
参考
カテゴリ
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!