How to plot a cfit object in the borders of the original data
Ältere Kommentare anzeigen
Hi,
for me it's important to compare many cfit objects, and therefore it is also important where they start and where they begin. Is there a way to define the cfit object only in the borders of the input data?
If not, how can i plot the cfit only in the borders? I will write a code for that instead.
I hope you can help me :)
I already tried
if true
% code
for p=1:anzFigFreq;
E1=plot (curves{p,XX}(-0.2:0));
xlim([0,0.5]);
ylim([-0.5,0]);
set(E1,'Color',Colour(p,:),'DisplayName',[Uebersicht{p*laengeReihe,2} '' Uebersicht{p*laengeReihe,3}]);
legend('-DynamicLegend');
hold all;
end
end
but in that case, nothing except for the legend is plotted.
Antworten (1)
Sean de Wolski
am 4 Nov. 2014
Rather than using plot(cfitobj,...), evaluate the cfit objects on the data range you care about:
xr = x(x>xmin & x<xmax);
y1 = cfit1(xr);
y2 = cfit2(xr);
plot(xr,y1,xr,y2)
Kategorien
Mehr zu Data Distribution Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!