Plotting elements in a cell array

3 次查看(过去 30 天)
Hello,
can someone explaine me how to plot the elements in the cell array as attached.
thanks.

回答(2 个)

Dishant Arora
Dishant Arora 2014-4-9
data = cellfun(@str2double, str, 'Un', 1);
plot(data)

Azzi Abdelmalek
Azzi Abdelmalek 2014-4-9
load str;
data=cellfun(@str2num,str);
plot(data)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by