|
|
Apply exist on cell array?
I have a 7x1 cell array called X.
exist(X) does not work as I am not allowed to apply it on type cell.
Is there any solution for this problem, please?
Thank you.
Blue
|
|
0
|
|
|
|
Reply
|
bluesaturn (54)
|
6/11/2010 10:49:51 AM |
|
"bluesaturn[at]kellnerweg.de" <bluesaturn@kellnerweg.de> wrote in message <774166218.318291.1276271421713.JavaMail.root@gallium.mathforum.org>...
> I have a 7x1 cell array called X.
>
> exist(X) does not work as I am not allowed to apply it on type cell.
> Is there any solution for this problem, please?
>
> Thank you.
> Blue
Hi Blue, you have to include the name of the variable, be it a cell array or not, in single quotes.
A = cell(2,1);
exist('A')
Hope that helps,
Wayne
|
|
0
|
|
|
|
Reply
|
Wayne
|
6/11/2010 4:13:04 PM
|
|
Wayne King wrote:
> "bluesaturn[at]kellnerweg.de" <bluesaturn@kellnerweg.de> wrote in
> message
> <774166218.318291.1276271421713.JavaMail.root@gallium.mathforum.org>...
>> I have a 7x1 cell array called X.
>>
>> exist(X) does not work as I am not allowed to apply it on type cell.
>> Is there any solution for this problem, please?
>>
>> Thank you.
>> Blue
>
> Hi Blue, you have to include the name of the variable, be it a cell
> array or not, in single quotes.
>
> A = cell(2,1);
> exist('A')
>
> Hope that helps,
To which I would add that unless you have specific reason not to, you should use
exist('A','var')
just in case your variable name happens to be the same as the name of a
function or the like.
|
|
0
|
|
|
|
Reply
|
Walter
|
6/11/2010 4:25:36 PM
|
|
|
2 Replies
360 Views
(page loaded in 0.028 seconds)
Similiar Articles: syntax for creating array of cell arrays - comp.soft-sys.matlab ...... nbActrors)); at this point my structure exists, but the field is an empty 0x0 numeric array. ... array ... array data (see Cell Arrays ... cell arrays of strings, use char ... Problem inserting cell array using fastinsert() into mysql ...For the record, we need to convert cell array to matrix to store it into mysql table. ... mysql database table of the following schema, > > CREATE TABLE IF NOT EXISTS ... Hierarchical data structure from a multi-dimensional array - comp ...... can > verify if the entry with such index exists in the original array and > if it exists ... array size 1x1 - comp.soft-sys.matlab alphabetical sort of cell array - comp ... Array of something - comp.lang.java.help... Hash: SHA1 Hi, I am defining a `Tableau' array of `Cell ... would not create a class just to hold a single array. Other than the trivial fact that no array exists ... Listbox GUI - comp.soft-sys.matlabBuild either a character array or cell array of strings from those names, and use that character array or ... ImageFolder; if ~isempty(handles.ImageFolder) if exist ... what is the highest subscript in the array?!? - comp.lang.idl ...... team, I find myself wanting to use the highest subscript in an array and ... com/www.michaelgalloy.com does not exist ... comp.soft-sys.matlab Forming a cell array or an ... How can i merged the cell in jxl - comp.lang.java.help... into ... merge multiple records into 1 - comp.databases ... these exist ... merged the cell ... xlswrite to merged cells - comp.soft-sys.matlab I have a cell array that I ... Incorporating data from a variable in xlswrite filename - comp ...I use to create and xlswrite a cell array with variable names (sort of 'header'), then xlswrite data ... that specifies the name of the file. If filename does not exist ... Submitting parallel jobs to local scheduler - comp.soft-sys.matlab ...The worker then does its thing (producing a 3d double array), writes its chunk to disk and exists ... but it only wants a single task as input with a cell array of cell ... Strange Length of an array ?? - comp.lang.xharbourOther languages and such use 0 as a valid array index, but ... of such OLE item to see if such method exists ... delete cells in cell array with certain cell size ... Apply exist on cell array? - Newsreader - MATLAB CentralI have a 7x1 cell array called X. exist(X) does not work as I am not allowed to apply it on type cell. Is there any solution for this problem, please? Apply function to each cell in cell array - MATLABThis MATLAB function calls the function specified by function handle func and passes elements from cell arrays C1,...,Cn, where n is the number of inputs to function ... 7/15/2012 1:31:15 PM
|
|
|
|
|
|
|
|
|