To store plotregression value in a variabe

조회 수: 3 (최근 30일)
veeresh g
veeresh g 2020년 4월 3일
댓글: Rodolfo 2021년 9월 26일
is it possible to store the regression (R) value in a variable
%%plots the linear regression of targets relative to outputs.
plotregression(targets,outputs)

채택된 답변

Mehmed Saad
Mehmed Saad 2020년 4월 3일
Suppose the example given below
it is matlab example
[x,t] = simplefit_dataset;
net = feedforwardnet(10);
net = train(net,x,t);
y = net(x);
v =figure,
plotregression(t,y,'Regression')
%% To get Data
Data_X = v.Children(3).Children(1).XData;
Data_Y = v.Children(3).Children(1).YData;
%% To get Fit
Fit_X = v.Children(3).Children(2).XData;
Fit_Y = v.Children(3).Children(2).YData;
%% To get YeqT
  댓글 수: 7
Mehmed Saad
Mehmed Saad 2020년 4월 6일
cheers
Rodolfo
Rodolfo 2021년 9월 26일
Awesome. I was searching for this since July.
Thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by