Making a small app in matlab

4 ビュー (過去 30 日間)
Matija Kosak
Matija Kosak 2018 年 7 月 10 日
編集済み: Walter Roberson 2025 年 2 月 2 日
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 件のコメント
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 日
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 日
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

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by