フィルターのクリア

Existing GUIDE gui - I want to have callback that has been migrated from GUIDE to App Designer - how do I hook it up to get the new App Designer with the old GUIDE gui.

2 ビュー (過去 30 日間)
I have a very complicated set of GUI's developed in GUIDE. I have migrated one of the functions using App Designer and will be creating new ones. I need to know how to hook the new App Designer program into the calling code with minimum changes to the calling GUI. How Do I do this?

回答 (1 件)

Karan Singh
Karan Singh 2023 年 10 月 3 日
編集済み: Karan Singh 2023 年 10 月 3 日
Hi Carol,
From what I understand, the goal is to integrate the App designer function into your calling code GUI without having to make many changes.
To integrate an App Designer program into your existing GUI developed using GUIDE, you can follow these steps:
1. Export the App Designer program as a standalone MATLAB function:
- Open your App Designer program in the App Designer editor.
- Go to the "Code View" tab in the App Designer editor.
- Click on the "Export" button and choose "Export to MATLAB function".
- Save the exported function in a separate file.
2. Update the calling code in your existing GUIDE GUI:
- Open the GUIDE GUI in the GUIDE editor.
- Locate the point in the code where you want to call the App Designer program.
- Replace the relevant code with a function call to the exported App Designer function.
- Pass any necessary inputs to the function and capture any outputs as needed.
3. Handle any necessary data transfer between the GUIDE GUI and the App Designer program:
- If you need to pass data between the GUIDE GUI and the App Designer program, you can use MATLAB's global variables, handles structure, or other data sharing mechanisms.
By following these steps, you can integrate an App Designer program into your existing GUIDE GUI with minimal changes to the calling code.
Attached below are some documentation links that you may find helpful:
Hope this helps!
Karan Singh Khati

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by