Error with a plot
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Jakeb Chouinard
il 12 Ago 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 Commenti
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!