Example of Plotting from a Function:
For illustration, the function can be called as shown below:
>> y = [1:2:9].^3
y =
1 27 125 343 729
>> rca = {'bar', 'area', 'plot'}
>> plotywithcell(y, rca)
The function is common and works for any number of plot types stored in the cell array.