How I can get the dimension of matrix
조회 수: 76 (최근 30일)
이전 댓글 표시
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
채택된 답변
Cris LaPierre
2021년 12월 21일
B = dec2bin(123125);
B = [repmat('0',rem(length(B),2)),B];
A= reshape(B,2,[])' - '0';
[x,y]=size(A)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!