Error message: "Undefined function or variable 'loadfile_CreateFcn'"

1 回表示 (過去 30 日間)
Sascha F
Sascha F 2017 年 2 月 20 日
回答済み: Adam 2017 年 2 月 20 日
I get this error anytime I start my GUI.
"loadfile" is a button on the GUI. However, although it gives out the error, the GUI works fine. What is this "_*CreateFcn" and what do I need it for if apparently everything works well without it?

回答 (1 件)

Adam
Adam 2017 年 2 月 20 日
CreateFcn is something that GUIDE creates automatically for you which I assume you have deleted. Find the button in GUIDE, go to its property inspector and delete the 'CreateFcn' line from it, or get it to recreate the pointless auto CreateFcn if you prefer.
I usually get rid of the CreateFcn from my ui controls, but it does require you to remove them from the properties of the control as well as deleting the function from the .m file.

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by