I have such a matlab function:
function j = globalfun(a, xr, x)
gv_0 = 0;
gv_1 = 0;
counter1_0 = 0;
counter1_1 = 0;
counter2_0 = 0;
counter2_1 = 0;
counter3_0 = 0;
counter3_1 = 0;
counter4_0 = 0;
counter4_1 = 0;
............................................
............................................
score = gv_0/gv_1;
end
I haven't written all the function codes, because it is not needed.
The question is, I need to get "score" value from another script I'm using.
How can I manage the issue?
Thanks,
scoresomewhere else, return it:function [j,score] = globalfun(a, xr, x)