Using writetable to create a text file
9 次查看(过去 30 天)
显示 更早的评论
Hello,
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:
T=table(NumMec,NumSeq,NumImg,tDom,tDice);
writetable(T,'tp1_89322.txt','WriteMode','append')
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
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!