How to call .m file and its all functionality through call back push button in gui?

1 回表示 (過去 30 日間)
Tayab Raza
Tayab Raza 2013 年 6 月 3 日
Hello everyone
My question is I had created a .m file few days ago and which shows output in figure and yesterday i came to know about Matlab gui and i created a gui with some buttons now i want to call my .m file which i previously created through callback push button in gui to show output.
Thanks in advance

回答 (2 件)

Andrew Reibold
Andrew Reibold 2013 年 6 月 6 日
You need to have the .m file inside the folder you are working in. This may mean saving a copy of it to where your gui files are saved.
Inside the call back, call the function as if you were calling it from the command window.
As long as the function .m file is in the correct folder, it should call it normally.

yeshwanth manhcuri
yeshwanth manhcuri 2013 年 6 月 12 日
just put d code open('xyz.m') dats it.....u should do it after copying the file into same folder

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by