Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
t-test 3D matrix

Subject: t-test 3D matrix

From: Sylvie

Date: 26 Feb, 2009 05:13:01

Message: 1 of 2

Hello there,

I used ttest2 on two 3D matrices. I would like to make a t distributions of the t scores of each voxel and display the ones that are significant at alpha=0.05. Both matrices are equal...

Thank you
Sylvie

Subject: t-test 3D matrix

From: Tom Lane

Date: 26 Feb, 2009 15:46:02

Message: 2 of 2

> I used ttest2 on two 3D matrices. I would like to make a t distributions
> of the t scores of each voxel and display the ones that are significant at
> alpha=0.05. Both matrices are equal...

Sylvie, I am not sure I understand the question, but here are a few lines of
code that try to detect ways in which two random things are significantly
different:

s = rand; % some random standard deviation
a1 = s*randn(10,10,100); % random background noise
a2 = s*randn(10,10,100); % another
a1(1:5,1:6,:) = a1(1:5,1:6,:) + s/2; % signal equals 0.5 * std dev
h = ttest2(a1,a2,0.05,'both','equal',3)

-- Tom

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us