Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Points not getting drawn if there are lot of error values represented by NAN in MATLAB 2015a.

1 回表示 (過去 30 日間)
Goutham Madan Urs
Goutham Madan Urs 2017 年 6 月 1 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
We are trying to plot a set of data samples that has more error values represented by NAN. We are able to see the plot as scattered points in version 2014a but in version 2015a the plot displayed will be empty. Attached is the sample data set that we are interested in plotting. Steps we are using for plotting: 1) Get subplot lines and axes reference using "plotyy" call. 2) Update axes properties. 3) Get continuous data at 25sps. 4) Push data to buffer. 5) Update subplot lines with buffer data. 6) Use "Drawnow" command to draw subplot data.
**We cannot share the actual code.
  2 件のコメント
Rik
Rik 2017 年 6 月 2 日
Why can't you share actual code? Might it be possible to share a MWE that reproduces the problem?
KSSV
KSSV 2017 年 6 月 2 日
*We cannot share the actual code.*
Then it is not legitimate to pose a question too.

回答 (1 件)

Aster Vanhecke
Aster Vanhecke 2017 年 6 月 2 日
figure,plot(dummy_data)
Would draw lines between consequent datapoints, it cannot draw any lines, since all datapoints are followed by NaN values.
You can plot individual points like this:
figure,plot(dummy_data,'+')
Or remove NaN values like this:
dummy_data_without_NaN=dummy_data(~isnan(dummy_data));
figure,plot(dummy_data_without_NaN)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by