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

Geoff Hayes
Geoff Hayes 2018년 7월 10일
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?
Matija Kosak
Matija Kosak 2018년 7월 10일
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.
Matija Kosak
Matija Kosak 2018년 7월 10일
Here is code I have for now.
Matija Kosak
Matija Kosak 2018년 7월 10일
Do you understand what I need?:)

댓글을 달려면 로그인하십시오.

 채택된 답변

OCDER
OCDER 2018년 7월 10일

0 개 추천

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

추가 답변 (1개)

anfel
anfel 2025년 2월 2일
편집: Walter Roberson 2025년 2월 2일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

질문:

2018년 7월 10일

편집:

2025년 2월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by