문제

I have a .csv file that has a column of data being complex. When I use data = load(file_name), the imaginary parts of that column are all discarded!

How may I import them into MATLAB without losing my imaginary part?

도움이 되었습니까?

해결책

Using csvread() should help you here. It does support reading in complex data if your column data is in complex format.

Check the MATLAB documentation: http://www.mathworks.com/help/matlab/ref/csvread.html and look under the Algorithms heading.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top