0todd0000 / spm1dmatlab

One-Dimensional Statistical Parametric Mapping in Matlab.
GNU General Public License v3.0
28 stars 13 forks source link

Getting started in MATLAB (screencast) #140

Open 0todd0000 opened 3 years ago

0todd0000 commented 3 years ago

( 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

IMAGE ALT TEXT HERE

EvaHoogendoorn commented 2 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.

image image
m-a-robinson commented 2 years ago

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

17740150810 commented 1 year ago

I want to ask how can I orginize 3 dataset (Y A SUBJ) into one Matlab code?

0todd0000 commented 1 year ago

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();
17740150810 commented 1 year ago

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: @.***>