how to connect existing matlab code (.m) file with app designer in matlab?
조회 수: 68 (최근 30일)
이전 댓글 표시
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
Rik
2023년 5월 17일
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.
답변 (1개)
Mrinal Anand
2023년 7월 8일
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.
댓글 수: 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!