I have a vector (2×6001) and I want to save it to into a .txt file,. But before saving it , I also want to add a semicolon after every even position and a comma after every odd position:
Let's say:
x=(x1,x2,x3,x4,x5,…)
and I want sth like this:
x=(x1,x2;x3,x4;x5,…)
How can I do this?
I don't have access to the writematrix function, only dlmwrite
I tried delimiter, but all the data will get the same delimiter.
Best Answer