Plotting doubles against cells
이전 댓글 표시
I have 36 cells in the cell array AAG(36x1) A cell looks like this:
AAG{3,1}=1x923 cell={1x757 double 1x726 double 1x761 double 1x785 double 1x773 double 1x788 double...}
For each double, I have one value in another cell array AAI(36x1)
AAI{3,1}=1x923 double=[8 11 8 11 8..7...]
What I want is to plot AAI against AAG.
I have tried using 2 functions and for loops to make to column vectors with all values in AAG plotted against the values in AAI repeated .
댓글 수: 4
Turlough Hughes
2021년 4월 28일
Is AAG{3,1} definitely a 1x923 cell. Given that AAI is 1x923 double, I'm guessing you meant AAG{3,1} is a 1x923 double?
Confirm with
class(AAG{3,1})
Joel Schelander
2021년 4월 28일
Turlough Hughes
2021년 4월 28일
Ok that helps, my follow up question is how does the data in AAG{3,1} relate to AAI{3,1}, are you expecting 923 horizontal lines for AAG{3,1} and AAI{3,1}? Do you want to plot it all on the same chart?
Joel Schelander
2021년 4월 28일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!