function cellplot - cell arraythe function


Function cellplot - Cell array:

The function cellplot place a graphical display of the cell array in a figure Window; though, it is a high-level view and fundamentally just displays similar information as typing the name of the variable (exmple, it wouldn't display the contents of the vector).

Also, most of the functions and operations on arrays which we seen work with the cell arrays. For illustration, here are several related to dimensioning:

>> length(cellrowvec)

ans =

  4

>> size(cellcolvec)

ans =

  4   1

>> cellrowvec{end}

ans =

hello

 

It is not possible to delete an individual element from the cell array. For illustration, assigning an empty vector to a cell array element does not delete the element, it merely replaces it with the empty vector:

>> cellrowvec

mycell =

  [23]   'a'    [1x5 double]   'hello'

>> length(cellrowvec)

ans =

  4

>> cellrowvec{2} = []

mycell =

  [23]    []    [1x5 double]   'hello'

>> length(cellrowvec)

ans =

  4

Though, it is possible to delete the whole row or column from a cell array by assigning the empty vector (Note: use parentheses instead of curly braces to refer to the row or column):

>> cellmat

mycellmat =

  [    23]      'a'

  [1x5 double]    'hello'

>> cellmat(1,:) = []

mycellmat =

  [1x5 double]     'hello'

Request for Solution File

Ask an Expert for Answer!!
Applications of MATLAB: function cellplot - cell arraythe function
Reference No:- TGS0175098

Expected delivery within 24 Hours