Computing with multiple files

1 次查看(过去 30 天)
Chris Martin
Chris Martin 2014-8-20
编辑: dpb 2014-8-20
Dear All,
I am having time series data of around 100 stations, I need to calculate mean, detrending and have to save the output to a file for each station. How to proceed actually I am new to matlab. I want in such a way that by giving the station name, it will create the result.I am attaching one time series for example:.....where first column is the time, second is the position and third is the error. Also please tell me how to calculate mean and detrending with error...
2003.04246 1.36996 0.00357
2003.04520 1.37082 0.00309
2003.04794 1.36922 0.00332
[sizable chunk elided for brevity--dpb]
...
2006.10000 1.45960 0.00315
2006.10274 1.46003 0.00326
2006.10548 1.46138 0.00504
  1 个评论
dpb
dpb 2014-8-20
编辑:dpb 2014-8-20
Don't paste such large sample datasets -- 5 or 10 lines is plenty to indicate the format...the rest is just noise.
If there's reason for something peculiar in the dataset that requires it, use the paperclip to attach a file instead of pasting so much text.

请先登录,再进行评论。

回答(1 个)

dpb
dpb 2014-8-20
...how to calculate mean and detrending with error...
doc mean % for a)
Don't know what ...detrending with error means? For detrending
doc polyfit % and friends for linear trends
For processing multiple files, see the FAQ
I most strongly recommend to your attention the dir solution if you can make a suitable naming convention to return the files desired with a judicious choice of wildcard in the argument.

类别

Help CenterFile Exchange 中查找有关 Scope Variables and Generate Names 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by