Open 0todd0000 opened 3 years ago
Can you help me with my script? Everytime we run the script, we can't plot with spmi.plot() We have watched your videos, but we don't know what is wrong.
Hello, It looks like you have 0D (discrete) not 1D (waveform) data that you are analysing, as you have created a "SPM0D" object. you get an error because you are using the 1D plotting function for 0D data. A typical data structure for 1D analysis would be J (trials) x q (nodes) e.g. 10 x 101 Regards Mark
I want to ask how can I orginize 3 dataset (Y A SUBJ) into one Matlab code?
Please refer to the anova1rm example (shortened version of the code below).
dataset = spm1d.data.uv1d.anova1rm.SpeedGRFcategoricalRM();
[Y,A,SUBJ] = deal(dataset.Y, dataset.A, dataset.SUBJ);
spmi = spm1d.stats.anova1rm(Y, A, SUBJ).inference(0.05);
disp(spmi)
spmi.plot();
thank you so much!
发自我的iPhone
------------------ Original ------------------ From: Todd Pataky @.> Date: Mon, Jul 3, 2023 9:20 AM To: 0todd0000/spm1dmatlab @.> Cc: 17740150810 @.>, Comment @.> Subject: Re: [0todd0000/spm1dmatlab] Getting started in MATLAB (screencast)(#140)
Please refer to the anova1rm example (shortened version of the code below). dataset = spm1d.data.uv1d.anova1rm.SpeedGRFcategoricalRM(); [Y,A,SUBJ] = deal(dataset.Y, dataset.A, dataset.SUBJ); spmi = spm1d.stats.anova1rm(Y, A, SUBJ).inference(0.05); disp(spmi) spmi.plot();
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
( This is a documentation / installation issue opened for future reference. )
The screencast below describes how to install and get started using spm1d for MATLAB.
Thank you Stuart!
Find other SPM tutorial screencasts on Stuart's YouTube channel