Function cellplot - cell array, MATLAB in Engineering

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'

Posted Date: 10/20/2012 5:49:34 AM | Location : United States







Related Discussions:- Function cellplot - cell array, Assignment Help, Ask Question on Function cellplot - cell array, Get Answer, Expert's Help, Function cellplot - cell array Discussions

Write discussion on Function cellplot - cell array
Your posts are moderated
Related Questions
Intersect function and setdiff function: The intersect function rather than returns all the values which can be found in both of the input argument vectors. >> intersect(v

Creating a cell array: The other method of creating a cell array is easy to assign values to particular array elements and build it up element by element. Though, as explained

function imread: The function imread can read an image file, for illustration a JPEG (.jpg) file. The function reads color images into a 3-dimensional matrix. >> myimage1

Illustration of Passing arguments to functions: Here is an illustration of calling this function: >> printrand() The random # is 0.94 As nothing is passed to

Text graphic function - Graphics objects: The text graphic function permits text to be printed in a Figure Window, involving special characters which are printed by using \spe

Illustration of initializing the data structure: illustration of initializing the data structure by preallocating is here as shown: >> cyls(3) = struct('code', 'c', 'dimen

Individual structure variable: The individual structure variable for one software package may look like this: The name of the structure variable is a package; it has f

Vectors of Structures: In numerous applications, involving database applications, information generally would be stored in the vector of structures, instead of in individual s

Illustration of Subfunctions: This is an illustration of running this program: >> rectarea Please enter the length: 6 Please enter the width: 3 For a rectan

Defined a variable in work space: The variables defined in the script will become a part of the workspace: >> clear >> who >> mysummfile    15 >> who