Matlab AD components creation and performance
조회 수: 1 (최근 30일)
이전 댓글 표시
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.
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!