Jordan McLeod
unread,Oct 11, 2011, 7:24:10 PM10/11/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fityk-users
I may be missing the point of the commands that return a string, but I
thought it would be useful for naming output files from FitYk. I
should mention that I'm very short of funds, as a student, so I'm
using the free FitYk (v. 0.9.8). If this has been corrected in later
versions, my apologies.
I'm trying to use the return of "title", which returns a string on the
command line when used with such commands as p, print, i, info, etc.
However, I can't seem to find a way to call the string in, for
example, the following lines:
@0: print all: x, y, F(x), F[0](x), F[1](x), F[2](x), y-F(x) > 'C:
\Users\Jordan\Desktop\Data For Jordan\' + return title + '.dat'
@0: print all: x, y, F(x), F[0](x), F[1](x), F[2](x), y-F(x) > 'C:
\Users\Jordan\Desktop\Data For Jordan\' + {title} + '.dat'
@0: print all: x, y, F(x), F[0](x), F[1](x), F[2](x), y-F(x) > 'C:
\Users\Jordan\Desktop\Data For Jordan\'.{title}.'.dat'
which would hopefully be executed as:
@0: print all: x, y, F(x), F[0](x), F[1](x), F[2](x), y-F(x) > 'C:
\Users\Jordan\Desktop\Data For Jordan\title.dat'
Ideally, this would export the data to a space separated value .dat
file named after the title of the file opened in FitYk. However, it
doesn't work. I've tried every function call method and common
toString() function that I can think of without success.
Incidentally, with this experimentation, I've found that I cannot
assign any strings to variables as $_str = string or $_str = 'string'
throw errors. I'm not sure assigning strings is a huge deal, but if I
could use {title} to call the value of title, it would help, as would
some kind of concatenation for strings. This would allow for greater
ability to name.
My initial hope was to create a script to analyse data and automate it
with a .bat file. If there isn't a way, I may have to scrap this
nearly entirely and setup using C or something.
Jordan McLeod
Student
State University of New York at Brockport