How to save and load complex variables and their values in Matlab?

41 ビュー (過去 30 日間)
Tuncay Eren
Tuncay Eren 2018 年 1 月 9 日
コメント済み: Tuncay Eren 2018 年 1 月 9 日
Hello
Could you please help me in the following problem?
>> clear all
>> A = [2+3i;3+i;4-2i]; % example
>> save A.txt A -ascii
Warning: Imaginary part of complex variable 'A' not saved to
ASCII file.
when I try to save the complex A matrix I get this error message.
How can I save A and load it in Matlab?
many thansk in advance!!

採用された回答

Stephen23
Stephen23 2018 年 1 月 9 日
  1 件のコメント
Tuncay Eren
Tuncay Eren 2018 年 1 月 9 日
Excellent! thanks for the quick and very useful answer Stephen.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by