how to use an integral function inside a for loop? i need to find the value of function that chages as i chages .then using this values i need to find another integral.
r0 =0.1
u =[1:7]’
Q =zeros(length(u),1)
E =zeros(length(Q),1)
for i =1:length(u)
Q(i,1) =0.023*(r0^(-1/4))*((u(i))^(-14/4))
f =@(Q) (Q(i)).^(0.3)
E(i,1) =integral(f,1,7)
endr0 =0.1
u =[1:7]’
Q =zeros(length(u),1)
E =zeros(length(Q),1)
for i =1:length(u)
Q(i,1) =0.023*(r0^(-1/4))*((u(i))^(-14/4))
f =@(Q) (Q(i)).^(0.3)
E(i,1) =integral(f,1,7)
end r0 =0.1
u =[1:7]’
Q =zeros(length(u),1)
E =zeros(length(Q),1)
for i =1:length(u)
Q(i,1) =0.023*(r0^(-1/4))*((u(i))^(-14/4))
f =@(Q) (Q(i)).^(0.3)
E(i,1) =integral(f,1,7)
end integral, for loop MATLAB Answers — New Questions