Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: mean, std, of group
Replies: 2   Last Post: Oct 8, 2013 2:51 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
fmri

Posts: 42
Registered: 5/1/13
mean, std, of group
Posted: Oct 8, 2013 10:56 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,

I have a mat file that contains these struc :
stats.s1.range
stats.s2.range
stats.s3.range
stats.s4.range
.
.
etc

Each stats.s(i) has range,std,mean.

I would like to calculate the mean of the range, mean, and std across the group.

I tried this :

for i=1:16 ,
group_mean=mean(stats.s(i).range)
end
but I get this error
Reference to non-existent field 's'.

Can anyone please help me figuring this out or help me with a way of calculating this ?

Thanks

AS




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.