Hi,
How do i plot values in a graph when there are multiple level of cells available in a struct,
Have provided the screenshot below for reference,
Example: say I need to plot cyc0000 to cyc13000 (loop) so that i can plot the voltage to time in each of the cyc.
Thank you.

 채택된 답변

Akira Agata
Akira Agata 2018년 3월 28일

1 개 추천

You can use getfield function to access data in your nested structure, like:
for kk = 0:1300
cyc = sprintf('cyc%04d',kk);
t = getfield(Cell1,cyc,'C1ch','t');
v = getfield(Cell1,cyc,'C1ch','v');
%
% Some process to plot t-v and save for each cycle
%
end

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

태그

질문:

2018년 3월 28일

답변:

2018년 3월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by