ERROR using OutputFcn - VarargoutNotCell

i have a mat file and a gui running smoothly on matlab command window but when i compiled it it shows an error saying:
{??? Error using ==> charms_OutputFcn
variable output array 'varargout' must be a cell array.
Error in ==> gui_mainfcn 248
Error in ==> charms at 40
MATLAB:VarargoutNotCell
Warning:1 visible figure(s) exist at MCR termination}
my line 40 is like this:
{ [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});}
how can i resolve this , thanks .

댓글 수: 1

Laurens Bakker
Laurens Bakker 2012년 3월 7일
Did you declare
varargout = cell( someLength, 1 );
before line 40? If so, please also include that code. Also, why are there {} around the entire line?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

질문:

2012년 3월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by