- Three "Button" components ("Load data", "Predict" and "Export")
- A "TextArea" componenet to display the predicted value with the unit.
Build An App for a trained ANN model for future predictions on new data
6 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
New to Matlab app designer. I have trained an ANN model in Matlab. I want to develop a simple app (for possible deployment) using Matlab app designer. The app will have the following features
- 'Load data' button to load data
- Button that says 'Predict'. The loaded data will be predicted on the ANN model I have already trained
- a 'Result' interface that will display the predicted value with a unit in mL
- An 'Export' button that can export or save the result to an excel file.
I am not sure how to go about building an app with the features I have listed above and the codes that comes with it. Any example code or work will be truly appreciated!
Thanks!
0 个评论
采纳的回答
Dinesh
2023-5-8
编辑:Dinesh
2023-5-8
Hello there,
To create an app in MATLAB App Designer with the features you want, you can follow these steps.
First, type "appdesigner" in the MATLAB command window to open App designer and then create a blank new app.
Then, in the App designer's design interface, you can easily add the components that you want by dragging them from the menu.
In your case, you can add
You can arrange the components as desired by clicking on them and dragging in the "Design" tab.
You can then add callbacks for each button to perform the desired actions.
For the "Load data" button, the callback function might look something like this:
function LoadDataButtonPushed(app, event)
% Select and load data
[file, path] = uigetfile('*.mat', 'Select the data file');
if ~isequal(file, 0)
app.data = load(fullfile(path, file));
end
end
These steps shown above will help you get started with building your app.
The following is a link to a video that can help you understand the interface and build a basic app using App Designer:
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!