Robochameleon  v1.0
Functions
varOrCell.m File Reference

Returns variable or specified element of cell array. More...

Go to the source code of this file.

Functions

function varOrCell (in var, in ii)
 Returns variable or specified element of cell array. More...
 

Detailed Description

Returns variable or specified element of cell array.

{}

Example

c = {'First', 'Second'}
var = varOrCell(c,2)
% 'Second'
c = 'Third'
var = varOrCell(c,2)
% 'Third'
Author
Rasmus Jones
Version
1

Definition in file varOrCell.m.

Function Documentation

function varOrCell ( in  var,
in  ii 
)

Returns variable or specified element of cell array.

Returns variable or specified element of cell array

Parameters
varvariable Variable in question
iiIndex Index in case of cell array
Return values
output1Output value 1
varOutput value 1