フィルターのクリア

Installing and running matlab app able to load and process .mat file

4 ビュー (過去 30 日間)
Matteo Bellini
Matteo Bellini 2020 年 1 月 10 日
コメント済み: MD UDDIN 2022 年 8 月 12 日
Good afternoon to everybody. With Matlab compiler (AppDesigner) I have to create a standalone app able to use a given .mat file for plot data.
This .mat file contains structures with cells, neural network models, linear models (from fitlm), tables, double arrays.
I have to plot both the data contained in the double arrays and the data (double arrays) generated after calling the neural network models, as here below e.g. listed.
To import the .mat file I have created a property with "load" from a given path.
When I run the application in AppDesigner, the app works correctly.
When I install the packaged standalone application with the inclusion of the .mat file to load and I run it, the standalone app don't works. I need some help!
Thank you and best regards.
properties (Access = public)
var = load ('*path\file.mat') % Description
end
[...]
n = app.var.net;
t = app.var.table;
x = n(app.var.FirstArray);
y = app.var.SecondArray;
scatter(app.UIAxes,x,y,"black");
  1 件のコメント
MD UDDIN
MD UDDIN 2022 年 8 月 12 日
I am facing almost similar situation. I have .csv file to be processed and plot the figures. When I run the app in standalone application it can process data only which are in Desktop (Same directory where my app shortcut is located). I want that my app will be able to process any data from any directory (any directory from my pc or from removeable disk /usb). Would you please suggest me how to do that ? @Matteo Bellini@J. Alex Lee

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

回答 (1 件)

J. Alex Lee
J. Alex Lee 2020 年 1 月 12 日
If the problem is that the standalone app can't find the file to load in the first place, you need to understand how paths work in deployed apps.
https://blogs.mathworks.com/loren/2008/08/11/path-management-in-deployed-applications/
Or use full paths

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by