How do i extract data from each group separately and plot
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Savannah Britto
le 15 Avr 2022
Modifié(e) : Savannah Britto
le 16 Avr 2022
U have attached the excel spreadsheet to this document and i want to extract the data from the Time course of logmIKI f(mean and s.e.m.) for each group separately, overlaping in the same figure. PLEASEEE HELP!
Thank you in advance
0 commentaires
Réponse acceptée
Walter Roberson
le 15 Avr 2022
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/965825/advancedstats2.csv';
t = readtable(filename);
t.Properties.VariableNames
G = findgroups(t.group);
output = splitapply(@(subj, group, trial, logmIKI) {table(subj, group, trial, logmIKI)}, t, G)
output{1}(1:10,:)
5 commentaires
Walter Roberson
le 16 Avr 2022
stackedplot() does not offer any way to plot with different sizes of variables.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Environment and Settings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!