To store plotregression value in a variabe

19 ビュー (過去 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 Center および File ExchangeGrid 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