Error with a plot
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello everyone,
I should position higher the data (see for) in which you can see the error; how can I solve this problem?
And how can I remove the spikes?
Thank you very much.
load('giulia_TT.mat')
giulia_monthly=retime(giulia_TT,'monthly','mean');
load('giulia_monthly_DELTA');
E = giuliamensile.Height
NEW_6=E *0.35 *10;
% c=giuliamensile{:,1};
% c=datetime(c,'InputFormat','MM-yyyy');
plot(giulia_monthly.Time,NEW_6(:,1),'g-^' ,'MarkerEdgeColor','k','MarkerFaceColor','g') ;
hold on
A=giulia_monthly
for i =113:121
A(i)=A(i)+171.68;
end
plot(giulia_monthly.Time(:,1),A);
댓글 수: 0
답변 (1개)
Jakeb Chouinard
2021년 8월 12일
For removing the spikes, I would recommend looking into the function filloutliers. Since your data isn't meant to be terribly consistent, you will likely need to use a windowed approach, which is further detailed in its documentation.
For your plotting error, you are attempting to index into a table without specifying where on the table you wish to index into. I'm not sure what part you're trying to access, but you should be using methods found here.
Cheers,
Jakeb
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!