create vector from 21 individual values from for-loop
Mostrar comentarios más antiguos
I have 21 values for K from my for-loop and need to makes these values into a vector. The end goal is to make a box plot. Any guidance?
2 comentarios
Bob Thompson
el 10 de Jun. de 2019
Are you indexing the results?
aet
el 10 de Jun. de 2019
Respuestas (1)
Jan
el 10 de Jun. de 2019
K = zeros(1, 21); % Pre-allocation
for ii = 1:21
K(ii) = rand; % Insert your calculations here
end
If you post your code, a more matching answer is possible.
3 comentarios
aet
el 10 de Jun. de 2019
Walter Roberson
el 10 de Jun. de 2019
K(i) = kurtosis(V);
aet
el 10 de Jun. de 2019
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!