How can I store fitdist output as a variable in a matrix please?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
MAHMOUD ALZIOUD
il 1 Ott 2018
Commentato: MAHMOUD ALZIOUD
il 1 Ott 2018
Dear All, I run the command fitdist to produce the distribution parameters, since I do the run 200 times it is hard to write the parameters by hand, how can I please store them in a matrix as variables? the attached image show the output.
0 Commenti
Risposta accettata
ANKUR KUMAR
il 1 Ott 2018
Modificato: ANKUR KUMAR
il 1 Ott 2018
Since you have not provided the data, I am taking random data to run loops.
clc
clear
for i=1:200
pd = fitdist(randi(20,1,100)','Normal');
mu(i)=pd.mu; %you can give any variable in place of mu(i)
sigma(i)=pd.sigma; %you can give any variable in place of sigma(i)
end
2 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!