How to improve saving a scatter plot from three arrays with size 1*508654896

1 回表示 (過去 30 日間)
Hana
Hana 2015 年 2 月 9 日
コメント済み: Sean de Wolski 2015 年 2 月 9 日
using 3 arrays R,S and T I want to make a scatterplot,but it takes a lot of time to save the scatterplot and sometimes crashed. How can I improve it?
bb= find(R>=0.2 & R <0.4);
x2 = S(bb);
y2 = T(bb);
figure(2)
scatter(x2,y2,'MarkerFaceColor','b','MarkerEdgeColor','b');
saveas(gcf,'420bbh.tiff', 'tiffn') saveas(gcf,'420bbh.fig')

採用された回答

Sean de Wolski
Sean de Wolski 2015 年 2 月 9 日
I think you need to consider another kind of plot. Your monitor doesn't even have that many pixels!
  2 件のコメント
Hana
Hana 2015 年 2 月 9 日
most of these pixels are nan
Sean de Wolski
Sean de Wolski 2015 年 2 月 9 日
Then remove them before scattering!
Otherwise, they still need to be transmitted.
Here's one way to remove:
idxNan = isnan(x)|isnan(y);
x(idxNan) = [];
y(idxNan) = [];

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by