Do I have to upgrade to Matlab 2020?

조회 수: 2 (최근 30일)
Muazma Ali
Muazma Ali 2024년 1월 7일
댓글: Image Analyst 2024년 1월 14일
Hi! :)
In one of my apps I am using writetable function and my problem seems to be that each time I run the app, the data in the table ( heterogenous table) that is written, is not overwritten.
Can somebody help me with my problem?
  댓글 수: 3
Muazma Ali
Muazma Ali 2024년 1월 7일
@Dyuman Joshi I dont get any error messsage but I can see the data is not updated..
Dyuman Joshi
Dyuman Joshi 2024년 1월 7일
Even then, without seeing the code it is not possible to suggest how to solve the issue/problem.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2024년 1월 7일
I'd say sure, but upgrade to R2023b, the latest, instead of R2020a. Can't hurt. Otherwise call delete(filename) before calling writetable to make sure the file has only the new data in it.
  댓글 수: 2
Muazma Ali
Muazma Ali 2024년 1월 14일
@Image Analyst I did it but it seems all data is overwrittten except the character data..
Do I really have to upgrade to newer versions of Matlab..? It is quite expensive , I already have matlab 2018
Image Analyst
Image Analyst 2024년 1월 14일
Well you asked about upgrading...but no, it should not be necessary. You did delete the file like I suggested before writing it again, right? If so, then if in the new file the character data is not written out with writetable then that means that the character data was not present in the table. Check all the columns of the table just before you call writetable.

댓글을 달려면 로그인하십시오.

카테고리

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