I'd like some help with my Matlab problem. I'm working on macOS with Matlab R2016b. I want to convert a .mat file containing a matrix of 1088 rows and 832 columns into a .txt file.
I tried the above code without success.
load('H.mat')
dlmwrite('H.txt')
By loading the matrix on matlab I find the following informations :
Thank you.
dlmwrite('H.txt', H)
– Luis MendoUndefined function 'real' for input arguments of type 'struct'.
Error in dlmwrite (line 189)
str = sprintf('%.*g%+.*gi',precn,real(m(i,j)),precn,imag(m(i,j)));
– m2016bH
is a field of astruct
variable calledcode
. Trydlmwrite('H.txt', code.H)
– Luis Mendo