Executing function in mathematica function problem
- To: mathgroup at smc.vnet.net
- Subject: [mg69931] Executing function in mathematica function problem
- From: "krzysztof.lisowski at wp.pl" <krzysztof.lisowski at wp.pl>
- Date: Wed, 27 Sep 2006 06:06:18 -0400 (EDT)
Hello,
I've created simple procedure in another system, which takes one parameter
(x(1)) as argument function and returns one value. After compilation,
with 'mex -l fnc.m' command I've created a shared library.
In Mathematica's script I load this function with:
link = Install["f:\\f1.exe"];
F1[0.5] # I have a correct result
Then I define such argument, which are part of a function
fCE=F1[x1]; f
C[{x1_}]=fCE;
and execute the Mathematica function FNC[...,fC,...].
The FNC is defined as follow FNC[...,fC_,...]:=Block[{...,
fCi,...,cog,}
....
bva:=If[cog && Abs[#]>fm, Sign[#]fm, #]&;
fCi:=(++if; bva[N[fC[#]]]ix)&;
...
]
when I try execute such a script I have a error;
Part::partw: Part 1 of {} does not exist...
Any sugestions...
KL
- Follow-Ups:
- Re: Executing function in mathematica function problem
- From: "Chris Chiasson" <chris@chiasson.name>
- Re: Executing function in mathematica function problem