MATLAB: How to save a vector v=[1 2 3 4]; into a text file. How to do that

How to save a vector v=[1 2 3 4]; into a text file. How to do that? [Hint use save] in matlab?

Best Answer

v=[1 2 3 4];
save('myfile.txt','v','-ascii')
Related Question