具有多个文件的拟合功能 [英] Fitting Function with Multiple Files

查看:71
本文介绍了具有多个文件的拟合功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据:
文件1:

My Data: File 1:

2015-08-01 07:00    0.23    0.52    0.00    0.52    9   14.6    14.6 14.6   67  8.5 0.0 --- 0.00    0.0 --- 14.6    14.1    14.1    16.3    1016.2  0.00      0.0   156 0.22    156 0.0 0.00    0.0 0.003   0.000   23.9    39  9.1 23.4    0.05    23  1   100.0   1   1.8797836153192153  660.7143449269239

文件2:

2015-08-01 07:00    0.23    0.52    0.00    0.52    9   14.6    14.6 14.6   67  8.5 0.0 --- 0.00    0.0 --- 14.6    14.1    14.1    16.3    1016.2  0.00      0.0   156 0.22    156 0.0 0.00    0.0 0.003   0.000   23.9    39  9.1 23.4    0.05    23  1   100.0   1   1.8797836153192153  660.7143449269239

.....等。
这样的csv。文件是多天,从那以后,我使用3:43:0
创建了一个散点图我使用了 0 作为虚拟对象,因此我可以使用各种线色(如果我不会做,颜色会在第9行之后重复出现)

..... and so on. So the csv. files are multiple days and from those days I created a scatterplot using 3:43:0 I used the 0as a dummy so I could use varialble linecolors (if I wouldn`t have done that the colors would have repeated themselfs after line 9)

散点图看起来不错,但现在我要将曲线拟合到图中。有2个类似的问题:问题1 ,<一个href = https://stackoverflow.com/questions/25384477/how-to-fit-a-function-with-multiple-files-in-gnuplot>问题,涵盖了来自多个文件的拟合数据,但是尝试使用 cat awk 命令时,我总是遇到一个错误,告诉我无法创建数据管道
所以我尝试的是:

The Scatter Plot looks great but now I want to fit a curve into the plot. There are 2 similar questions: Question 1 , Question covering the Fit Data from multiple files but when trying the cat or awk command I always end up with an error telling me cannot create pipe for data So what I tried was:

fit f(x) '< cat file1.csv file2.csv file3.csv file4.csv file5.csv' u 3:43:0 a,b

我在这里想念什么吗?
Cou8ld这是操作系统问题吗?我运行Windows 7。

am I missing something here? Cou8ld this be a OS Problem? I run Windows 7.

推荐答案

cat awk 是Unix命令。 cat 的窗口等效为 type 。例如,以下方法应该起作用:

Both cat and awk are Unix-commands. The windows-equivalent of cat is type. For instance, the following should work:

fit f(x) '< type file1.csv file2.csv' u 3:43:0 via a,b

如果出于某种原因,您需要使用 gawk (gnu等效于 awk ), grep 或Windows中的 sed ,请查看 gnuwin32

If, for some reason, you need to use a tool like gawk (gnu-equivalent to awk), grep, or sed in windows, take a look at gnuwin32.

这篇关于具有多个文件的拟合功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆