## Gaussian Psychometric function – Prepare data

Good morning,

sorry I am new to Matlab and stuck on thins problem for weeks already. Probably t is a basic question and I would be so happy if someone could help.

I am trying to fit a psychometric gaussian function on my data (have 30 different data sets). The important table columns basically look like this:

z1 z2 z3 z4

___ __ __ __

-1 0 0 1

0 2 2 0

1 0 2 1

2 0 2 1

3 2 0 1

4 2 0 1

5 0 2 1

6 4 0 0

7 3 4 0

So z1 is just the number of trials, z2 is a condition (ranging from 1-5) and z3 is another sencond condition (0, 2, 4). z4 is the reaction itself (so 0 and 1).

To fit the curve I thought that I use the following:

[m,s] = normfit(Z4);

y = normpdf(Z4,m,s);

plot(Z4,y,’.’);

However, how can I include the other two conditions so I have trials ranging from 1-5 and 0,2,4. I would have to calculate the mean and standard deviation only for these trials? Or is the overall function incorrect?

So thankful!!Good morning,

sorry I am new to Matlab and stuck on thins problem for weeks already. Probably t is a basic question and I would be so happy if someone could help.

I am trying to fit a psychometric gaussian function on my data (have 30 different data sets). The important table columns basically look like this:

z1 z2 z3 z4

___ __ __ __

-1 0 0 1

0 2 2 0

1 0 2 1

2 0 2 1

3 2 0 1

4 2 0 1

5 0 2 1

6 4 0 0

7 3 4 0

So z1 is just the number of trials, z2 is a condition (ranging from 1-5) and z3 is another sencond condition (0, 2, 4). z4 is the reaction itself (so 0 and 1).

To fit the curve I thought that I use the following:

[m,s] = normfit(Z4);

y = normpdf(Z4,m,s);

plot(Z4,y,’.’);

However, how can I include the other two conditions so I have trials ranging from 1-5 and 0,2,4. I would have to calculate the mean and standard deviation only for these trials? Or is the overall function incorrect?

So thankful!! Good morning,

sorry I am new to Matlab and stuck on thins problem for weeks already. Probably t is a basic question and I would be so happy if someone could help.

I am trying to fit a psychometric gaussian function on my data (have 30 different data sets). The important table columns basically look like this:

z1 z2 z3 z4

___ __ __ __

-1 0 0 1

0 2 2 0

1 0 2 1

2 0 2 1

3 2 0 1

4 2 0 1

5 0 2 1

6 4 0 0

7 3 4 0

So z1 is just the number of trials, z2 is a condition (ranging from 1-5) and z3 is another sencond condition (0, 2, 4). z4 is the reaction itself (so 0 and 1).

To fit the curve I thought that I use the following:

[m,s] = normfit(Z4);

y = normpdf(Z4,m,s);

plot(Z4,y,’.’);

However, how can I include the other two conditions so I have trials ranging from 1-5 and 0,2,4. I would have to calculate the mean and standard deviation only for these trials? Or is the overall function incorrect?

So thankful!! gaussian, function, cumulative function, mean, standard deviation MATLAB Answers — New Questions