saving to cell2mat without overwriting
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
JESUS DAVID ARIZA ROYETH
il 5 Dic 2019
x = B(:,2)
A=[];
for i=3: length(B)
y = B(:,i)
[fitresult, gof] = createFit(x, y)
A=[A cell2mat(struct2cell(gof))]
end
Più risposte (0)
Vedere anche
Categorie
Scopri di più su MATLAB Parallel Server in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!