複数の10進数の値をndec2binで2進数に変換したいです。
古いコメントを表示
複数の10進数の値をndec2binで2進数に変換したいです。
ex)a = [1 2 3]'
ndec2bin(a,3);
上のコードを試したのですがPlease specify x in the range[-2^(n-1) 2^(n-1)-1].というエラーがでてうまくできませんでした。ndec2binの関数の数値xには変数をいれられないということなのでしょうか?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および 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!