MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
Plot only the first column of data by indexing further into the content (multilevel
indexing).

figure
plot(randCell{1,2}(:,1))
title('First Column of Data')

Combine numeric data from multiple cells using the cell2mat function.

This example creates a 5-by-2 cell array that stores temperature data for three cities, and
plots the temperatures for each city by date.

temperature(1,:) = {'01-Jan-2010', [45, 49, 0]};
temperature(2,:) = {'03-Apr-2010', [54, 68, 21]};

12 Cell Arrays

Free download pdf