How to write vectors line by line in a txt file using fprintf delimited by a space?
13 views (last 30 days)
Show older comments
I have for example these three vectors : [1 2 3 ], [4 5 6 ],[7 8 9]. I would like to get the result like this in the file txt:
1 2 3 4 5 6 7 8 9
(each vector in a line) I tryed this
but i didn't get the result. Delimiter ' ' doesn't work with this command.
Adam on 6 Aug 2015
should be enough. Note the space in the string.
More Answers (0)
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!