Making a small app in matlab
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Matija Kosak
il 10 Lug 2018
Modificato: Walter Roberson
il 2 Feb 2025 alle 22:22
I would like to make small app with matlab where I put few informations and through my matlab commands calculate it.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191782/image.jpeg)
App should look like that where I put 3 numeric informations, and 3 file names, and than the app calculate it and export needed excel file.
I attached my matlab code with some guide.
4 Commenti
Risposta accettata
OCDER
il 10 Lug 2018
There's a good tutorial that explains where to add the callback functions. Run the following in your matlab command window.
>> appdesigner.internal.application.openTutorial('BasicCoding')
Essentially, you modify private methods inside your code. This is from the tutorial when you finish it.
methods (Access = private)
% Value changed function: AmplitutdeSlider
function AmplitutdeSliderValueChanged(app, event) %THIS CALLBACK fcn will run a code after a GUI event.
value = app.AmplitutdeSlider.Value;
plot(app.UIAxes, value*peaks)
app.UIAxes.YLim = [-1000 1000];
end
end
0 Commenti
Più risposte (1)
anfel
il 2 Feb 2025 alle 21:59
Modificato: Walter Roberson
il 2 Feb 2025 alle 22:22
methods (Access = private)
% Value changed function: AmplitutdeSlider
function AmplitutdeSliderValueChanged(app, event) %THIS CALLBACK fcn will run a code after a GUI event.
value = app.AmplitutdeSlider.Value;
plot(app.UIAxes, value*peaks)
app.UIAxes.YLim = [-1000 1000];
end
end
0 Commenti
Vedere anche
Categorie
Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!