Re: Datatypes



In article <e0ja6d$36i$1@xxxxxxxxxxxxxxxxxxxxxx>,
titus.edelhofer@xxxxxxxxxxxx says...
Hi Nilesh,

use the function class, e.g.:

class('hello')
class(2)

Titus

"Nilesh" <Nilesh1@xxxxxxxxx> schrieb im Newsbeitrag
news:ef2e9c0.-1@xxxxxxxxxxxxxxxxxxx
Hello,

I made some classes in Matlab. When you use a class and when you
check the datatype of an object which is an instance of a class then
the datatype is the name of the class. I have a GUI I want to find
all objects in my matlab workspace and show them in a listbox. What
command can I use to find the datatypes of an object?

Thanks

Nilesh




s = whos

returns all sorts of information about variables in the workspace,
including class.

--
Loren
http://blogs.mathworks.com/loren
.



Relevant Pages

  • Re: Datatypes
    ... use the function class, e.g.: ... I made some classes in Matlab. ... the datatype is the name of the class. ... Nilesh ...
    (comp.soft-sys.matlab)
  • Re: User-defined struct with mex
    ... A problem arises, however, when in the mex function we want ... complicated (with other user-defined structures as members) ... the Matlab workspace and then copy it into the mex function ...
    (comp.soft-sys.matlab)
  • Re: writing user specified files
    ... What datatype does dlmread take? ... help not to be lectured on my proficiency in MATLAB. ... Steven Lord was helpful. ...
    (comp.soft-sys.matlab)
  • Re: How to read workspace variable from Simulink?
    ... Use the following approach with EVALIN: ... MATLAB returns variables of type 'mxArray'. ... can use this variable in expressions. ... variable in the MATLAB workspace. ...
    (comp.soft-sys.matlab)
  • Re: How to read workspace variable from Simulink?
    ... Use the following approach with EVALIN: ... MATLAB returns variables of type 'mxArray'. ... can use this variable in expressions. ... variable in the MATLAB workspace. ...
    (comp.soft-sys.matlab)