Do I need/How to add Functions in app designer

277 ビュー (過去 30 日間)
Medical Imaging
Medical Imaging 2020 年 7 月 29 日
コメント済み: Cris LaPierre 2022 年 5 月 25 日
I am incorporating my matlab code to UI using app designer and in previous written code it has various manually written subfunction which is called in the main script. When I use app designer to insert the codes from my script do I need to add those function files or not? I am new to app designer and dealing with these issues to understand. So far few sections I have added and did not receive any error it means it is automatically reading the function files from the location I saved. Please advice if I am doing this right.
Thank you in advance.

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 7 月 29 日
The most robust way to build your app is to have all the code contained inside it. You can include helper functions to include code that is not tied to a callback function.
However, it is possible to use existing function files as well. They just need to be accessible to your app, meaning they either need to be on your MATLAB path or in the same folder as your mlapp file.
  3 件のコメント
Reece Pene
Reece Pene 2022 年 5 月 25 日
what if my function has outputs?is it still the same?
Cris LaPierre
Cris LaPierre 2022 年 5 月 25 日
Yes

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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