フィルターのクリア

Change name and logo after Standalone Desktop Apps Compile

16 ビュー (過去 30 日間)
Ely Raz
Ely Raz 2023 年 10 月 17 日
編集済み: Florian Bidaud 2023 年 10 月 17 日
When I use Share/Standalone Desktop Apps to compile an app designer file I get in the reults the following:
How can I change the MATLAB App"" text to the app file name? Can I also change the to another logo beside the Matlab logo?

回答 (1 件)

Florian Bidaud
Florian Bidaud 2023 年 10 月 17 日
編集済み: Florian Bidaud 2023 年 10 月 17 日
You can go to the app.UIFigure and change the identifiers. The image should be in the same folder as the app or the path must added to Matlab path
Alternatively, you can add a Callback function to the app itself like follows:
classdef app1 < matlab.apps.AppBase
% Properties that correspond to app components
properties (Access = public)
UIFigure matlab.ui.Figure
end
% Callbacks that handle component events
methods (Access = private)
% Code that executes after component creation
function startupFcn(app)
app.UIFigure.Name = 'Your title';
app.UIFigure.Icon = "C:\path\to\your\image\smiley.jpg";
end
end
And there you go:

カテゴリ

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

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by