Code: Select all

`VARIABLES = TIME,Y,X, T`

1,1,1,300

...

1.04,19,9,300.249

1.04,19,10,300.249

1.04,20,1,300.249

1.04,20,2,300.249

1.04,20,3,300.249

...

You can generate it using MATLAB code, then add the header manually:

Code: Select all

`fid = fopen('example.dat','w')`

for time=1:0.01:2

for j=1:1:20

for i=1:1:10

fprintf(fid,strcat(num2str(time), ",", num2str(j), ",", num2str(i), ",", num2str(300+sin(2*pi*time)),"\r\n"))

end

end

end

I would like to average T in each (X; Y) point by TIME and save the result to a new variable.

I understand this may be partially done by Analyzer > Integration > Average ("Average variable T by Zones by K lines with all 3 indices set from 1 to Mx"), but it only outputs a list of values and doesn't write it to a variable.

I am doing this because I would like to do Fourier transform on the data but it appears to work better on variables fluctuating around 0, not around 300.

(I am not using SolutionTime for each time because when I do it, the Data > Fourier transform dialog does not have SolutionTime listed as the independent variable.)