Plotting elements in a cell array

1 次查看(过去 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 中查找有关 Line Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by