Quantcast
Channel: MATLAB Central Newsreader - tag:"median"
Viewing all articles
Browse latest Browse all 22

Re: standard deviation, confidence interval and more.

$
0
0
"Sara " <tjockpojken@gmail.com> wrote in message <m4hor2$6hk$1@newscl01ah.mathworks.com>...
> Hi!
>
> I'm a rather unexperienced MATLAB user. I barely manage to get along by googling and trial and error.
>
> Now I'm facing a problem google can't seem to solve for me.
>
> I have an expermimental setup that exports various sensor readings in the form of .txt files. The expermimental setup does the same thing over and over, exporting one file each time, meaning I have loads of files looking about the same (run1, run2, run3, run4 etc). The files contain 5000 samples each. I import these files into MATLAB using the textscan function.
> I store each run (loop) of the experimental setup in a cell array. So, if i loop my setup say 8 times I'll end up with a cell array containing 8 5000x1 double.
>
> Now I want to compare the runs to each other. Compare say sample 5 of run 1 with sample 5 of run 2, 3, 4, 5, 6, 7 and 8. I want to calculate standard deviation and maybe some other statistical parameter (I'm not exactly clear about this yet). But in short i want to be able to compare the runs to each other, and maybe find and "average run".
>
> How do I go about this? The std function returns the standard deviation of a vector, meaning I'd get the standard deviation of ONE run, not the runs compared to each other.
>
> I hope it's possible to understand my problem. I feel this shouldn't be an unusual thing to want to do, it's probably me trying to do it in a stupid way.
>
> Thanks,
> Sara

Does it help to collect sample 5 from run1, run2, run3, ... in a vector and calculate mean, standard deviation and other statistical parameters for this vector ?

Best wishes
Torsten.

Viewing all articles
Browse latest Browse all 22

Trending Articles