How do I save data to a file in Matlab?

1 view (last 30 days)
Alexandria Will-Cole
Alexandria Will-Cole on 14 Nov 2018
Commented: madhan ravi on 14 Nov 2018
I have three different variables that are 400x1 doubles and I would like to save this data in one file that is delimited by a tab. Please help! Thanks!

Answers (1)

madhan ravi
madhan ravi on 14 Nov 2018
dlmwrite('sample.txt',[a,b,c],'delimiter','\t') %a,b and c are variables
  4 Comments
Alexandria Will-Cole
Alexandria Will-Cole on 14 Nov 2018
I am looping through multiple data files processing and attempting to save the data into new data files, so that is why it is in a loop. Any advice?

Sign in to comment.

Categories

Find more on Programming in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!