trying to output mean values that were calculated into excel.
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
i have about 40 values that were calcualted but would only like to output 10 out of the 40. i calculated the mean, Standard deviation and addition, how would i only take the mean values and output them into excel?
3 Kommentare
Mathieu NOE
am 15 Okt. 2020
to output 10 out of the 40 : define the index of interest => your choice
to save the result to excel : see writetable or xlswrite doc
isamh
am 15 Okt. 2020
isamh
am 15 Okt. 2020
Antworten (1)
KSSV
am 15 Okt. 2020
May be you want to find the mean for every four elements and get 10 means. See the below:
A = rand(1,40) ; % random data for demo
M = mean(reshape(A,10,[]),2) ; % reshape and get mean
If you want t0 select any 10 elements randomly, use:
A = rand(1,40) ;
M = A(randperm(40,10)) ;
If you want to select first 10 elements
A = rand(1,40) ;
M = A(1:10) ;
Use writetable, xlswrite to write array M into xls file.
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!