MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]GUI 自动产生的M文件子函数问题 (https://www.labfans.com/bbs/showthread.php?t=6274)

lcg2551 2009-01-19 07:06

[求助]GUI 自动产生的M文件子函数问题
 
各位大虾:

本人刚开始学用matlab 的GUI,自动产生的m 文件中控件的callback 函数需要 用另外的子函数,我把子函数一起写在这个m文件里,提示
??? Error: File: F:\大论文\wind fiel simulation\windsimulation.m Line: 461 Column: 1
Illegal use of reserved keyword "function".

??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn.

这是为啥呢,难道子函数不能放在这个m文件里,只能放控件的生成以及回调函数??


所有时间均为北京时间。现在的时间是 11:07

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.