Load .mat-file in Web App Server
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dominik Müller
el 30 de Oct. de 2020
Comentada: Yiling
el 25 de Jul. de 2024
Hi folks,
I have an App running on Web App Server. What I'm trying to do is read in a .mat-file and set some values depending on the file.
My aim is to get to a point where a user can make some changes on the GUI/app then save the entered values to a custom .mat-file and load them back into the app to a later point in time. I hope my problem is okay to understand.
If I run my App out of Matlab save/load works fine. But on the deployed app on the server it doesn't.
I get the following messages in the log of the server:
% saveload.mat is uploaded successfully
% Error using load
% Unable to read file 'saveload.mat'. No such file or directory.
What am I doing wrong?
5 comentarios
Mario Malic
el 30 de Oct. de 2020
Editada: Mario Malic
el 30 de Oct. de 2020
Great! Also, don't use cd, rather supply full or relative path to load function. It is slow and can cause issues.
Respuesta aceptada
Dominik Müller
el 30 de Oct. de 2020
1 comentario
Yiling
el 25 de Jul. de 2024
Hi, what if I don't want to have the dialog box open? I've already uploaded the .mat file as the supporting file when packaging the APP. Is this a way that I can directly code into the app so the web server automatically detects the .mat file on the web server path and load it?
Put it anothe way, when uploading the .mat file as the supporting file, what is the web server path where the .mat file gets stored?
Más respuestas (0)
Ver también
Categorías
Más información sobre MATLAB Web App Server en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!