creating a matrix of zeros of size of another matrice
Mostrar comentarios más antiguos
I have code , in which a matrice r as 1*100 matrice.
then It makes make
pp=zeros(1,size(r,2));
I don't know what 2 means , I know that 1 means the number of rows , but only 2 works in this comment
what is it ?
thank you
1 comentario
per isakson
el 11 de Nov. de 2014
Answer to the question in the subject line:
B = zeros( size(A) );
and see the documentation on size.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!