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

38 views (last 30 days)
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!!

Accepted Answer

Stephen23
Stephen23 on 9 Jan 2018

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!