To store plotregression value in a variabe

3 visualizaciones (últimos 30 días)
veeresh g
veeresh g el 3 de Abr. de 2020
Comentada: Rodolfo el 26 de Sept. de 2021
is it possible to store the regression (R) value in a variable
%%plots the linear regression of targets relative to outputs.
plotregression(targets,outputs)

Respuesta aceptada

Mehmed Saad
Mehmed Saad el 3 de Abr. de 2020
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 comentarios
Mehmed Saad
Mehmed Saad el 6 de Abr. de 2020
cheers
Rodolfo
Rodolfo el 26 de Sept. de 2021
Awesome. I was searching for this since July.
Thank you

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Grid Lines, Tick Values, and Labels en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by