Plotting doubles against cells
Show older comments
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 Comments
Turlough Hughes
on 28 Apr 2021
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
on 28 Apr 2021
Turlough Hughes
on 28 Apr 2021
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
on 28 Apr 2021
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!