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 CenterFile Exchange에서 Develop 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