Diary doesn't create file, no error in command window

15 ビュー (過去 30 日間)
Samuel
Samuel 2023 年 9 月 28 日
回答済み: Gowtham 2023 年 10 月 3 日
Any time I try to create a new diary using diary file.txt, it doesn't output to MatlabDrive. I'm using matlab online and it was working just fine the day before, I'm not sure what's causing the problem.

採用された回答

Gowtham
Gowtham 2023 年 10 月 3 日
Hello Samuel,
I understand you are facing issue when using the diary command in MATLAB Online.
I tried running a sample code snippet to investigate the same issue and discovered that the code executed smoothly, producing the expected output.
For a sample demonstration of the above process, kindly refer to the following steps:
diary sample_file.txt
disp("Hello")
diary off
After executing the above commands in the Command window, the 'sample_file.txt' file is created.
Below is the output of the above commands in 'sample_file.txt'
Please follow the below steps to address the issue:
  • Ensure that you have the appropriate permissions to write files in the designated MATLAB Drive folder.
  • Ensure that the path specified in MATLAB Drive is correct.
  • Verify whether you have reached the storage limit of your MATLAB Drive.
  • It is advisable to maintain a stable internet connection while saving files to MATLAB Drive.
Kindly refer to the following MATLAB documentation for further understanding on the diary function
Hope this helps.
Best Regards,
Gowtham

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by