Plotting doubles against cells
Afficher commentaires plus anciens
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 commentaires
Turlough Hughes
le 28 Avr 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
le 28 Avr 2021
Turlough Hughes
le 28 Avr 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
le 28 Avr 2021
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!