Making a small app in matlab

I would like to make small app with matlab where I put few informations and through my matlab commands calculate it.
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 Comments

Matija - please clarify what your question is. Have you created the GUI? If so, are you using GUIDE, App Designer, or are you programmatically creating the GUI?
I used app designer to make GUI, and I'm interested where I have to put my matlab code to work like i write in first post.
Here is code I have for now.
Do you understand what I need?:)

Sign in to comment.

 Accepted Answer

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

More Answers (1)

anfel
anfel on 2 Feb 2025
Edited: Walter Roberson on 2 Feb 2025
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

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Asked:

on 10 Jul 2018

Edited:

on 2 Feb 2025

Community Treasure Hunt

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

Start Hunting!