Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
input arguments of type 'cell'.

Subject: input arguments of type 'cell'.

From: pink

Date: 16 Jun, 2011 05:17:02

Message: 1 of 3

I make the logic function of a uitable, if the data in the table is empty then it will appear wrndlg
my code
table=get(handles.uitable2,'data')
while isempty(cell(table))
    warndlg('warning')
    return
end

result
table =

     '' ''
     '' ''
     '' ''
     '' ''

??? Undefined function or method 'times' for input arguments of type 'cell'.

Error in ==> untitled>pushbutton2_Callback at 99
data=table.*2
Error in ==> gui_mainfcn at 96
        feval(varargin{:});

Subject: input arguments of type 'cell'.

From: Krishna Kumar

Date: 16 Jun, 2011 05:29:05

Message: 2 of 3

"pink" wrote in message <itc3ke$cn3$1@newscl01ah.mathworks.com>...
> I make the logic function of a uitable, if the data in the table is empty then it will appear wrndlg
> my code
> table=get(handles.uitable2,'data')
> while isempty(cell(table))
> warndlg('warning')
> return
> end
>
> result
> table =
>
> '' ''
> '' ''
> '' ''
> '' ''
>
> ??? Undefined function or method 'times' for input arguments of type 'cell'.
>
> Error in ==> untitled>pushbutton2_Callback at 99
> data=table.*2
> Error in ==> gui_mainfcn at 96
> feval(varargin{:});
Hi,
  since your 'table' is a cell, you can't multiply it with anything else. If you have to multiply it , you need to convert it to a matrix.
hth,
Krishna

Subject: input arguments of type 'cell'.

From: pink

Date: 16 Jun, 2011 08:57:04

Message: 3 of 3

"Krishna Kumar" <skrishnakumar.accet@gmail.com> wrote in message <itc4b1$ea3$1@newscl01ah.mathworks.com>...
> "pink" wrote in message <itc3ke$cn3$1@newscl01ah.mathworks.com>...
> > I make the logic function of a uitable, if the data in the table is empty then it will appear wrndlg
> > my code
> > table=get(handles.uitable2,'data')
> > while isempty(cell(table))
> > warndlg('warning')
> > return
> > end
> >
> > result
> > table =
> >
> > '' ''
> > '' ''
> > '' ''
> > '' ''
> >
> > ??? Undefined function or method 'times' for input arguments of type 'cell'.

kris
> >
> > Error in ==> untitled>pushbutton2_Callback at 99
> > data=table.*2
> > Error in ==> gui_mainfcn at 96
> > feval(varargin{:});
> Hi,
> since your 'table' is a cell, you can't multiply it with anything else. If you have to multiply it , you need to convert it to a matrix.
> hth,
> Krishna
thanks Krishna Kumar

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us