plotting cells from arrays
2 次查看(过去 30 天)
显示 更早的评论
for k2 = 1:22
data2 = mean(cellfun(@(x) x(k2,4), thething))
plot(data2,'-')
end
this is my codes. thething is my arrays contain cells. After I run the scripts, the plot just show nothing on it. Please tell me what's wrong with my code?
8 个评论
Stephen23
2018-6-28
@Kuang-Yu WANG: please upload your data in a .mat file by clicking the paperclip button.
回答(1 个)
KSSV
2018-6-27
figure
hold on
for k2 = 1:22
data2 = mean(cellfun(@(x) x(k2,4), thething))
plot(data2,'-')
end
4 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!