plot cell arrays...

97 ビュー (過去 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
Logabharathi Aruchamy 2012 年 4 月 11 日
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 Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by