How to write numerical data in rows in a text file ?
10 views (last 30 days)
I am trying to make a text file and store few vector variables in it.
a = [1:10]
b = [200:2010]
all equal length variables
when i do
the command window shows me gibberish. All alpha numeric characters and nothing makes sense. How can i store values in text file and read my file for contents without downloading it into an array or any other variable?
Ajay Kumar on 25 Oct 2019
I would suggest you to use file opening, writing it and closing it as it is more organised and easily understandable.
fid = fopen('xyz.txt','w');