Effacer les filtres
Effacer les filtres

how to connect existing matlab code (.m) file with app designer in matlab?

46 vues (au cours des 30 derniers jours)
md sazzad
md sazzad le 17 Mai 2023
Hello sirs,
I am new in app designers in matlab. i would like to see the results in app designer from my existing program (.m) file. how can i do interact with those 2 file .m) file and with app designer pls?
  1 commentaire
Rik
Rik le 17 Mai 2023
If your m file is a function, you can simply call it like any other function. If it is a script you should first change that.

Connectez-vous pour commenter.

Réponses (1)

Mrinal Anand
Mrinal Anand le 8 Juil 2023
As Rik mentioned, you can simply call functions from .m files in the App Designer callbacks/functions. Ensure that the App Designer file (.mlapp) and the .m files are in the same folder, if you want to call the functions directly. Otherwise, you would probably have to specify the file path.

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by