Using writetable to create a text file

15 views (last 30 days)
Ingrid Lopes
Ingrid Lopes on 21 Apr 2020
Commented: Ingrid Lopes on 21 Apr 2020
I am facing a problem with matlab which is that I want to create a table on a .txt file to write some variables. But as I will do that for a lot of data using a for cycle I want to jump a line on the table so as not to write upon the data already there and end up erasing it.
I tried this code:
type 'tp1_89322.txt'
But I get the error:
Error using writetable (line 152)
Invalid parameter name: WriteMode.
Anyone know how to get that right?
Thank you

Answers (1)

Jeremy Hughes
Jeremy Hughes on 21 Apr 2020
WriteMode is available in R2020a. What version are you using?

Community Treasure Hunt

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

Start Hunting!

Translated by