From: Abdel-karim on
I have the following statements but when execute them the erorr {{{ Subscript indices must either be real positive integers or logicals }}} appear
please if anyone has any comment or solution for this send to me


%************************************************
syms x;
for i=0:24
E(i)=int(((0.09)*x^(2)*exp(-0.3*x)/factorial(2)),i,i+1);
end
%************************************************
Thank you for everyone
From: Jeremy on
"Abdel-karim " <aoj173(a)hotmail.com> wrote in message <hq80mh$3ms$1(a)fred.mathworks.com>...
> I have the following statements but when execute them the erorr {{{ Subscript indices must either be real positive integers or logicals }}} appear
> please if anyone has any comment or solution for this send to me
>
>
> %************************************************
> syms x;
> for i=0:24
> E(i)=int(((0.09)*x^(2)*exp(-0.3*x)/factorial(2)),i,i+1);
> end
> %************************************************
> Thank you for everyone

Are you wanting to integrate once from 0 to 24, or multiple times from 0 to 1, 1 to 2, 2 to 3, etc?
From: Abdel-karim on
"Abdel-karim " <aoj173(a)hotmail.com> wrote in message <hq80mh$3ms$1(a)fred.mathworks.com>...
> I have the following statements but when execute them the erorr {{{ Subscript indices must either be real positive integers or logicals }}} appear
> please if anyone has any comment or solution for this send to me
>
>
> %************************************************
> syms x;
> for i=0:24
> E(i)=int(((0.09)*x^(2)*exp(-0.3*x)/factorial(2)),i,i+1);
> end
> %************************************************
> Thank you for everyone

Thanks all
I want multiple integration from 0 to 1, 1 to 2, ......, 24 to 25
From: Abdel-karim on
anyone have an idea for my question please give me an answer
thank you again