plot cell arrays...
106 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
KSSV
el 6 de Feb. de 2012
Respondida: Jy Lee
el 31 de Mayo de 2022
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
0 comentarios
Respuesta aceptada
Walter Roberson
el 6 de Feb. de 2012
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 comentarios
PRASHANT TIWARI
el 5 de Mzo. de 2022
Editada: PRASHANT TIWARI
el 5 de Mzo. de 2022
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.
Más respuestas (2)
Jorge Alliende
el 28 de Mzo. de 2014
Editada: Jorge Alliende
el 28 de Mzo. de 2014
You can plot your cell data in this way:
figure;
hold on;
cellfun(@plot,MyCell);
Best
Jorge
1 comentario
PRASHANT TIWARI
el 5 de Mzo. de 2022
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.
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!