saving to cell2mat without overwriting
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
EK
am 5 Dez. 2019
Kommentiert: EK
am 5 Dez. 2019
I am fitting data (each column ) to linear function in a loop
I would like to save output result (gof) to a matrix , each loop different column without overwritin.
Can anyone help?
x = B(:,2)
for i=3: length(B)
y = B(:,i)
[fitresult, gof] = createFit(x, y)
A=cell2mat(struct2cell(gof))
end
0 Kommentare
Akzeptierte Antwort
JESUS DAVID ARIZA ROYETH
am 5 Dez. 2019
x = B(:,2)
A=[];
for i=3: length(B)
y = B(:,i)
[fitresult, gof] = createFit(x, y)
A=[A cell2mat(struct2cell(gof))]
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Parallel Server 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!