MATLAB Answers

Export variable/signal

10 views (last 30 days)
Khaled Ibrahim
Khaled Ibrahim on 5 Jun 2020 at 11:52
Answered: Ameer Hamza on 5 Jun 2020 at 11:55
Hello,
I have generated a signal/variable (length=512*128) and would like to export this variable as text or c with the same format "rows and columns". Any suggestions, please?

  0 Comments

Sign in to comment.

Accepted Answer

Ameer Hamza
Ameer Hamza on 5 Jun 2020 at 11:55
Use writematrix() in R2019a and later
writematrix(M, 'filename.txt') % M is matrix name
for older versions, you can use dlmwrite()
dlmwrite('filename.txt', M)

  0 Comments

Sign in to comment.

More Answers (0)