How I can get the dimension of matrix
75 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Abduellah Elbakoush
el 21 de Dic. de 2021
Respondida: Cris LaPierre
el 21 de Dic. de 2021
I Have
B = dec2bin(123125)
B = [repmat('0',rem(length(B),2)),B]
A= reshape(B,2,[])' - '0'
the result of A is 9*2 double
I want to put the dimension of matrix in x and y
such as
the value of x =9
the value of y =2
0 comentarios
Respuesta aceptada
Cris LaPierre
el 21 de Dic. de 2021
B = dec2bin(123125);
B = [repmat('0',rem(length(B),2)),B];
A= reshape(B,2,[])' - '0';
[x,y]=size(A)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices 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!