Reputation: 544
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.
Upvotes: 3
Views: 4313
Reputation: 693
dlmwrite is not recommended by matlab: Better use
load('H.mat')
writematrix(H, 'H.txt')
see writematrix documentation.
Upvotes: 2