フィルターのクリア

Problem with writing/loading of mat file on other computers for Matlab app

1 回表示 (過去 30 日間)
Emil Nilsson
Emil Nilsson 2023 年 10 月 16 日
コメント済み: Emil Nilsson 2023 年 10 月 18 日
I have built an app in the Matlab app builder and then compiled the app, also including Matlab runtime in the packaging. The app writes data to a .mat file during execution and then also loads data from this same .mat file. On my own computer, the app is running as it's supposed, with writing to and reading from the .mat file working. When the app runs on other people's computers, however, the execution gets stuck. The .mat file is read to and written from the main app from the same folder as the main app, the working folder. Could the problem have to do with error of the read and write filepath when running the app on other computers than my own? Best regards, Emil
  2 件のコメント
Walter Roberson
Walter Roberson 2023 年 10 月 16 日
Are you using ctfroot to construct the path to write to?
Emil Nilsson
Emil Nilsson 2023 年 10 月 18 日
Thank you for your reply.
I eventually decided to go with using pwd, which resulted in satisfactory results. But ctfroot probably would have worked aswell.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by