Export data as file

Topics related to Spinach package
Post Reply
andrea_simion
Posts: 11
Joined: Sun Aug 15, 2021 9:42 pm

Export data as file

Post by andrea_simion »

After I obtained the fid, I export it as a file. I write the following command:
fid2ascii('fid',real(fid))
In that case, the time units are not given, i.e I obtained a file with just 2 columns: the first is the index of the point from the fid, i.e from 1 to 256 for parameters.npoints=256, and the second column contains the normalized intensity. I would like to have in the same file, a third column, with the corresponding "time (s)" values. How I can do that?
kuprov
Posts: 72
Joined: Mon Mar 29, 2021 4:26 pm

Re: Export data as file

Post by kuprov »

By editing the code in the fid2ascii function :lol: If you open that function, you would see that it's actually very simple. Or just copy the code out of it into your own file and modify as necessary. As I am sure you appreciate, we cannot predict every possible format a user might need!
Post Reply