Re: Cell Array



Hello,

I am creating a cell array in two different ways:
C_1 = {1,1,1,1;1,1,1,1;1,1,1,1;1,1,1,1}

And

A=1
B=repmat(A, 4, 4);
C_2={B}

When I write C_1 I see the cell elements and when I write C_2 I see [4x4
double]. Why? Is there any difference the way I create both cells.

I am asking this because I am having some problems with Cells in a
script I am creating and maybe this is one of the problems.

Thanks,
Miguel

.



Relevant Pages

  • Re: ClearContents does not work...
    ... Miguel, ... Adding the Workbookname did not work either... ... does not even clear numbers in those cells. ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: removing empty cells
    ... If you have empty cells only at the end of the cell array, ... CELLFUN is used to apply the ISEMPTY function to each cell of the ...
    (comp.soft-sys.matlab)
  • Writing a cell array containing strings and numbers to file
    ... it should be an easy task, but I can't find a way to do it: ... I have a cell array 1 by M. ... All I want is a text file, containing all M cells seperated by an empty row: ...
    (comp.soft-sys.matlab)
  • Re: Cell to Number
    ... Shelley Johnston wrote: ... > I have a cell array which I would like to convert to a number. ... is there a way to find the empty cells ... You can try the following method to replace the empty cells and then ...
    (comp.soft-sys.matlab)
  • help with cell array...
    ... I'm trying to modify some of the cells (whose indices are specified by ... k) of a certain cell array by adding an element to the vector contained ...
    (comp.soft-sys.matlab)