plot cell arrays...

106 次查看(过去 30 天)
KSSV
KSSV 2012-2-6
回答: Jy Lee 2022-5-31
Hi all
How to plot the data which is in cell arrays? When I use plot I get the following error.
"Conversion to double from cell is not possible"
Thanks in advance
Sreenu

采纳的回答

Walter Roberson
Walter Roberson 2012-2-6
You cannot plot data that is in cell arrays. Extract the data from the cell arrays and plot that. For example,
plot(MyCell{2,5}, MyCell{3,7})
  3 个评论
Logabharathi Aruchamy
It helped me a lot. thanks a lot Walter!
PRASHANT TIWARI
PRASHANT TIWARI 2022-3-5
编辑:PRASHANT TIWARI 2022-3-5
What if they are in loop.
Stress{i} = [Stress_local{i}(1,1)]
Strain{i} = [Strain_local{i}(1,1)]
on plotting it shows only last ith point.

请先登录,再进行评论。

更多回答(2 个)

Jorge Alliende
Jorge Alliende 2014-3-28
编辑:Jorge Alliende 2014-3-28
You can plot your cell data in this way:
figure;
hold on;
cellfun(@plot,MyCell);
Best
Jorge
  1 个评论
PRASHANT TIWARI
PRASHANT TIWARI 2022-3-5
Stress_local{i}(1,1)
Strain_local{i}(1,1)
how to plot for Stress_local{i}(1,1) vs Strain_local{i}(1,1) for each i value not only last value.

请先登录,再进行评论。


Jy Lee
Jy Lee 2022-5-31
Everyone, understand question?

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by