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
Related Structure Functions: There are many functions which can be used with structures in a MATLAB. The function isstruct will return 1 for logical true when the variable arg

Inverse of square matrix: The inverse is, hence the result of multiplying the scalar 1/D by each and every element in the preceding matrix. Note that this is not the matrix A,

Polyhedron - graphics objects: The field polyhedron.vertices is a matrix in which each row presents (x,y,z) points. The field polyhedron.faces defines the faces: for illustrat

Replacing a string - function strrep: The function strrep finds all the occurrences of a substring within the string, and substitutes them with a new substring. The order of a

Interchange rows : for illustration interchanging rows ri and rj is written as

i want to run 4 instances of my matlab code on 4 processor cores. im executing the job from head node. i created a parallel job and assigned number of workers. but i don''t get bac

Illustration sorting vectors of structures: This function sorts the structures depend only on the price field. A more common function is shown next, that receives a string whi

Removing Whitespace Characters: The MATLAB has functions which will eliminate trailing blanks from the end of a string and/or leading blanks from the starting of a string.

IS Functions in Matlab: There are many functions which are built into MATLAB which test whether or not something is true; these function names start with the word is. As these

num2str function: The num2str function, that converts real numbers, can be called in many ways. If only the real number is passed to the num2str function, it will generate a s