the bug does not happen in scilab 5.3.3 win64.
Ezequiel, did you try to rename the argument "param" to something else?
like "myparam". Maybe "param" is used internaly by some scilab function
On 05/08/2013 16:27, Ezequiel Soule wrote:
clear
function f=fiso(var,intP,param)
fiazo=var(1);
xt=var(2);
T=var(3);
I=var(4);
nu=intP;
chi=1;
rp=1;
razo=param;
f = fiazo*xt/razo*log(fiazo*xt) + fiazo*(1-xt)/razo*log(fiazo*(1-xt)) + (1-fiazo)/rp*log
(1-fiazo)+ chi*fiazo*(1-fiazo);
endfunction
function f=ftot(xt,p,intP,param)
var=[p(1) xt p(2) p(3)];
f = fiso(var,intP,param);
endfunction
save("ejem.sav")
load("ejem.sav")
The error message is:
Incompatible output argument
at line 3 of function ftot called by :
at line 14 of function createMacro called by :
at line 8 of function %__convertVariable__ called by :
at line 855 of function %_sodload called by :
load("ejem.sav")
But, doing the same without the variables intP, param, this is,
defining the function fiso as fiso(var), and given some value to intP
and param within the function... works fine!
Any help will be appreciated.
El 03/08/2013 08:34 a.m., Mathieu Dubois escribió:
Could you send a simple example which creates a simple environement
that shows the problem when saved and restored?
Mathieu
Le 31/07/2013 14:51, Ezequiel Soule a écrit :
Hello, I keep having this problem, when I try to load a saved
ennironments, I get an error "incompatible output arguments" in some
function of the environment, and it doesn´t load anything. The function
that gives the error works fine, and I don´t get any error when I
execute or call the function, just when loading the environment. It is
not one particular function, it happened many times, with different
environements and different functions. I can load some of the variables
if I specifiy then, but I can´t load the whole thing.
This happens wiht versions 5.4.0 and 5.4.1, I haven´t try older
versions.
Any ideas?
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users