- https://.mathworks.com/help/matlab/creating_guis/mortgage-app-or-gui-in-app-designer.html
- https://www.mathworks.com/help/matlab/creating_guis/share-data-across-callbacks-in-app-designer.html
- https://www.mathworks.com/help/matlab/creating_guis/create-a-simple-app-or-gui-using-app-designer.html
Building an app that does calculations based on user input
7 次查看(过去 30 天)
显示 更早的评论
Hello, I've written a MATLAB script that takes a bunch of user input data (things like diameter, efficiency, gain, etc), does calculations based on this data (using functions created in their own files), then displays the calculated numbers. My script functions fine, but I'm using this project as an opportunity to learn about MATLAB's App Designer. I would like to make an app with the functionality I just described that also has an easy UI.
So far, I have created the properties 'diameter' and 'efficiency'. I've created two numeric edit fields (in the design view) that allow the user to input these data values. I've also created a "Submit Data" button (with it's corresponding callback function) that allows the user to submit the entered data. In addition to all the houskeeping code that MATLAB automatically inserts for you, my additional code is listed below. Am I on the right track here? If so, what next steps do I need to take in order to start manipulating the input data for calculations? How (and where) can I integrate functions that I have already written into this code? Thanks in advance!
properties (Access = private)
diam; % Description
eff;
end
methods (Access = private)
% Button pushed function: SubmitDataButton
function SubmitDataButtonPushed(app, event)
app.diam = app.DiameterEditField.Value;
app.eff = app.EfficiencyEditField.Value;
end
end
0 个评论
回答(1 个)
TED MOSBY
2025-8-22,12:28
Hi,
Please refer to the following links for similar app designing steps:
Hope it helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!