m2016b
m2016b

Reputation: 544

How to convert .mat file into .txt file containing a matrix of 1088 rows and 832 columns?

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 :

a

Thank you.

Upvotes: 3

Views: 4313

Answers (1)

BitLauncher
BitLauncher

Reputation: 693

dlmwrite is not recommended by matlab: Better use

load('H.mat')
writematrix(H, 'H.txt') 

see writematrix documentation.

Upvotes: 2

Related Questions