Using writetable to create a text file

조회 수: 8 (최근 30일)
Ingrid Lopes
Ingrid Lopes 2020년 4월 21일
댓글: Ingrid Lopes 2020년 4월 21일
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

답변 (1개)

Jeremy Hughes
Jeremy Hughes 2020년 4월 21일
WriteMode is available in R2020a. What version are you using?

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by