filling matrix in matlab code
23 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
how to filling matrix in matlab
1 comentario
Jan
el 12 de Oct. de 2021
I have a loop in my matlab program which gives me 10 successive values as results, and I want to fill these values in a row matrix of size [10]. how do I program the filling of these values in the matrix in matlab?
Respuestas (1)
Kevin Holly
el 12 de Oct. de 2021
matrice = zeros(10);
for i=1:10
matrice(1,i)=i;
end
matrice
0 comentarios
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!