Change marker and hide confidence bounds in Plotting multiple linear regression (fitlm)
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to change marker for each plot and hide confidence bound
but I can not find related answer.
Where can I get a fitlm plotting properties?
Please help me :)
Thank you
X1 = R1.Research.TM_max_MFB(1,1:7) - R1.Research.P_max_MFB(1,1:7); X1 = X1*100;
Y1 = R1.Energy.bar(3,1:7); Y1 = Y1';
mdl1 = fitlm(X1,Y1);
mdl1summary = anova(mdl1,'summary');
X2 = R2.Research.TM_max_MFB(1,1:7) - R2.Research.P_max_MFB(1,1:7); X2 = X2*100;
Y2 = R2.Energy.bar(3,1:7); Y2 = Y2';
mdl2 = fitlm(X2,Y2);
mdl2summary = anova(mdl2,'summary');
X3 = R3.Research.TM_max_MFB(1,1:7) - R3.Research.P_max_MFB(1,1:7); X3 = X3*100;
Y3 = R3.Energy.bar(3,1:7); Y3 = Y3';
mdl3 = fitlm(X3,Y3);
mdl3summary = anova(mdl3,'summary');
figure(1); grid on ; hold on
plot(mdl1);
plot(mdl2);
plot(mdl3);
legend('Adjusted data','Linear ployfit ')
xlabel('MFB_Pmax - MFB_TMmax [%]')
ylabel('Exhaust Energy [%]')

0 Kommentare
Akzeptierte Antwort
Chunru
am 29 Aug. 2022
load carsmall
X = [Weight,Horsepower,Acceleration];
% Fit a linear regression model by using fitlm.
mdl = fitlm(X,MPG);
% use handle for plotting
h = plot(mdl)
h(1).Marker = 's' % change marker
delete(h(3)) % delete bounds
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Linear and Nonlinear Regression 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!