Error with a plot
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Jakeb Chouinard
am 12 Aug. 2021
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 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!