Plotting doubles against cells
Mostra commenti meno recenti
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 Commenti
Turlough Hughes
il 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
il 28 Apr 2021
Turlough Hughes
il 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
il 28 Apr 2021
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Mathematics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!