No products are associated with this question.
What is Psat? Why are using 3 end?
function P=BULBP(x,n) P=zeros(1,n); for ii=1:n P(n)=P(n)+x(ii)*Psat(ii); % what is Psat? end
The code would give an error if n was negative or contained a fraction or an imaginary number.
Also note that if n is a scalar, then
is the same as