|
From: Juergen W. <wie...@fr...> - 2008-03-15 00:23:12
|
> Many thanks for your help, but I just got that:
> gnuplot> evie(x, y) = real(system("echo 90 %f 0 %f 0.1
> 1|./eviegompertz", x, y)) gnuplot> print evie(alpha,beta)
> sh: 0.09400: command not found
>
> warning: internal error--stack not empty!
> (function called with too many parameters?)
> 0.0
Aaarg, sorry, there is an sprintf missing:
evie(x, y) = real(system(\
sprintf("echo 90 %f 0 %f 0.1 1|./eviegompertz", x, y)))
You can even make it more readable:
evie_cmd(x, y) = sprintf("echo 90 %f 0 %f 0.1 1|./eviegompertz", x,
y)
evie(x, y) = real(system(evie_cmd(x, y)))
> gnuplot> help function system
> Sorry, no help for 'function style system'
> gnuplot>
help functions system
The 's' is crucial here.
Juergen
|