Matlab AD components creation and performance

1 回表示 (過去 30 日間)
Robin L.
Robin L. 2019 年 5 月 7 日
編集済み: Robin L. 2019 年 5 月 7 日
Hello the community !
I come today with a new question about Matlab App Designer, and especially about the components creation.
Let's build a very simple app, composed of the button.
capture.png
Using the graphical tool, the generated code is :
% Create DirebonjourButton
app.DirebonjourButton = uibutton(app.UIFigure, 'push');
app.DirebonjourButton.ButtonPushedFcn = createCallbackFcn(app, @DirebonjourButtonPushed, true);
app.DirebonjourButton.Position = [60 395 100 36];
app.DirebonjourButton.Text = 'Dire bonjour';
I copy all the code of the .mlapp file and paste it inside a new blank .m file.
Then, replace the autogenerated code below by :
% Create DirebonjourButton
app.DirebonjourButton = uibutton(app.UIFigure, 'push', 'ButtonPushedFcn', createCallbackFcn(app, @DirebonjourButtonPushed, true), 'Position', [60 395 100 36], 'Text', 'Dire bonjour');
Results in a lower code file, BUT do I get in terms of performance ? Or on the contrary is it worse ?
Waiting for your opinion (my app contains arround 200 components and takes more than 20 secondes to be ready after starting up !)
Thanks,
Robin

回答 (0 件)

カテゴリ

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

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by