Interruption in the plotted data

1 回表示 (過去 30 日間)
Lilya
Lilya 2015 年 12 月 5 日
コメント済み: Lilya 2015 年 12 月 8 日
Hi all,
I use a neural network toolbox to predict the values of the last week in the used data year. When I plot the figure, the Interruption in the plotted data are appearing! Knowing that, the data are interpolated and there is no NaN in it.
SEE the attached figure
Please anyone can help I will appreciate it. Thank you

採用された回答

Walter Roberson
Walter Roberson 2015 年 12 月 5 日
編集済み: Walter Roberson 2015 年 12 月 5 日
I loaded the figure and examined the data, and there certainly are NaN in it.
h = openfig('predicted.fig');
L = findobj(h, 'type', 'line');
L7y = get(L(7), 'YData');
find(~isnan(L7y(1:8594))
ans =
8594
In other words, the first 8593 Y values of Expected Outputs are NaN and position 8594 is the first non-NaN. The same holds true for L(8), Network Predictions. The data for L(9), Original Targets, on the other hand, is valid only up to point 8593, and is NaN from 8594 onwards.
With the last non-NAN point from the left being 8593 and the first non-NaN point from the right being 8594, you will have a gap between 8593 and 8594, exactly like you are seeing.
  15 件のコメント
Walter Roberson
Walter Roberson 2015 年 12 月 8 日
Please start a new question.
Lilya
Lilya 2015 年 12 月 8 日
I apologize

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by