fiオブジェクトの行​列をcsv出力する方​法を教えてください。

7 ビュー (過去 30 日間)
K_S_
K_S_ 2022 年 7 月 19 日
コメント済み: K_S_ 2022 年 7 月 19 日
現在、ワークスペースに1×100のembedded.fiがあります。
これをcsv出力する方法を教えていただきたいです。よろしくお願いいたします。

採用された回答

Hernia Baby
Hernia Baby 2022 年 7 月 19 日
適当にfiオブジェクトを作ります
a = fi((magic(3)/10), 1, 16, 12)
a =
0.8000 0.1001 0.6001 0.3000 0.5000 0.7000 0.3999 0.8999 0.2000 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 12
doubleを使ってfi オブジェクトの倍精度浮動小数点実際値を取り出します
b = double(a)
b = 3×3
0.8000 0.1001 0.6001 0.3000 0.5000 0.7000 0.3999 0.8999 0.2000
writematrixで書き込みをします
writematrix(b,"b.csv")
  1 件のコメント
K_S_
K_S_ 2022 年 7 月 19 日
出来ました。ご回答いただきありがとうございました。

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!