How do you know if a call to "writetable" is successful?

2 次查看(过去 30 天)
Hello,
I'm sure that this is elementary, but what indicates that a function call that doesn't have an output proceeded properly? Like that "writetable()" actually did write as designed? The old "xlswrite" had a status output. Why doesn't writetable have that?
I guess the same question would be valid for "print".
Thanks!
Doug Anderson

采纳的回答

Walter Roberson
Walter Roberson 2022-9-9
An error condition would be generated if writetable() or save() fail.
Exceptions:
  • if the operating system or file system messes up and accidentally writes incorrectly data then you might not get an error message: they might believe that it worked when instead it created a mess
  • if the file is being written to a network file system then it is not completely certain that an error will always be reported.
  3 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by