Question: Summation of piecewise function

end

 

 

 

 

 

 

 

'pv:=p2'); %The variable a is matlab variable 'm:=m');'m1:=m1');'f:=piecewise(x>=pv[i], 1/(m1), x<pv[i], 0)')maple('r:=sum(f,i=1..m1)');

 

 

 

maple(

 

 

maple(

 

maple(

 

   

 

 

 

 

 

 

p(i) = 1-normcdf(abGU(i),muav(i),sigma(i,i));

 

 

 

 

Hello all.

I would like to create MATLAB code using MAPLE.

Below is my code. When I run the code, the last sentence has some errors.

I want to make empirical function evaluated at x using pv sets(pv:p-values).

Can you please help me out to use "sum" command for summation of piecewise function f with respect to one variable?

Thanks.

 

Best regards

Moonsu Kang

 

 
 MATLAB code:
  

:??? Error using ==> maple at 129
Error, (in sum) second argument must be a name, name=a..b, name=RootOf, or name=value

Error in ==> test4 at 54
maple('r:=sum(f,i=1..m1)');

for

Please Wait...