How do i extract data from each group separately and plot
조회 수: 4 (최근 30일)
이전 댓글 표시
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
채택된 답변
Walter Roberson
2022년 4월 15일
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
Walter Roberson
2022년 4월 16일
stackedplot() does not offer any way to plot with different sizes of variables.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!