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
calcrectarea subfunction: function call: area = calcrectarea(len,wid); function header: function area = calcrectarea(len, wid)   In the function call, the two arg

Expanding a function: The expand function will multiply out terms, and factor will do the opposite: >> expand((x+2)*(x-1)) ans = x^2 x-2 >> factor(ans)

Algorithm for the function explaine: The algorithm for the function explaine is as shown:  Print a description of e, the exp function, and how to find the approximate va

Example of Exponential function modular program: In order to view the distinction in the approximate value for e as n increases, the user kept choosing Limit & entering larger

Execution steps: Whenever the program is executed, the steps below will take place: The script calcandprintarea starts executing. The calcandprintarea calls the readr

ischar function: The ischar function return the logical true if an array is a character array, or logical false if not. >> vec = 'EK127'; >> ischar(vec) ans =

Gauss-Jordan: The Gauss-Jordan elimination technique begins in similar way which the Gauss elimination technique does, but then rather than of back-substitution, the eliminati

Gauss, Gauss-Jordan elimination: For 2 × 2 systems of equations, there are well-defined, easy solution techniques. Though, for the larger systems of equations, finding solutio

Example of modular program: In a modular program, there would be one main script which calls three separate functions to complete these tasks: A function to prompt an us

Sorting Vectors of structures: Whenever working with vector of structures, it is very common to sort based on a particular field within the structures. For illustration, recal