Error in dlmwrite (line 181)

13 ビュー (過去 30 日間)
BN
BN 2021 年 3 月 16 日
コメント済み: BN 2021 年 3 月 16 日
Dear all
I have 2 arrays namely A and B that I wish to aggregate into one array like this:
1/1/1978,0.00
1/2/1978,0.00
1/3/1978,0.00
1/4/1978,0.00
1/5/1978,0.00
1/6/1978,0.00
1/7/1978,0.00
1/8/1978,0.00
1/9/1978,0.00
1/10/1978,0.00
So I used this code: (I attached A and B)
BA= table (B, A);
dlmwrite('daily_data.txt',BA)
But unfortunately, I get this error:
Check for missing argument or incorrect argument data type in call to
function 'real'.
Error in dlmwrite (line 181)
str =
sprintf('%.*g%+.*gi',precn,real(m(i,j)),precn,imag(m(i,j)));
Do you know how I can achieve my goal? since I work with software that accepts only the format that I mentioned above.
Thanks

採用された回答

KSSV
KSSV 2021 年 3 月 16 日
  1 件のコメント
BN
BN 2021 年 3 月 16 日
Thank you so much

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by