How I can get the dimension of matrix
71 ビュー (過去 30 日間)
古いコメントを表示
Abduellah Elbakoush
2021 年 12 月 21 日
回答済み: Cris LaPierre
2021 年 12 月 21 日
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!