Clear Filters
Clear Filters

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

1 view (last 30 days)
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 Comments
Emil Nilsson
Emil Nilsson on 18 Oct 2023
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.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!