Scatter plot mutiple dataset
63 ビュー (過去 30 日間)
古いコメントを表示
I trying to scatterplot multiple data plots but cannot seem to do it correctly.
I tried
scatterplot(data1);
hold on
scatterplot(data2);
I just receive 2 figures with each separate scatterplot.. How do i put into one.. I have to merge 94 dataset into one scatterplot.. So...
0 件のコメント
回答 (2 件)
Image Analyst
2015 年 6 月 7 日
Try scatter() instead:
scatter(data1(:, 1), data1(:, 2));
hold on
scatter(data2(:, 1), data2(:, 2));
2 件のコメント
Image Analyst
2015 年 6 月 7 日
What's wrong with the code? How is this "manual" and not "automatic"? scatter() does nearly all the work (all you have to do is to simply call it) - isn't that "automatic"? And what difference does it make as long as it does the job?
Walter Roberson
2015 年 6 月 7 日
h = scatterplot(data1);
hold on
scatterplot(data2, h);
You might need to provide all of the arguments for the second call to scatterplot(); see the documentation page.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!