I am calculating integral of a function 'f' with respect to lamda. I want to calculate variable 'q' for all possible values given in range of variable 'x'. upper limit and lower limit of variable lamda is as same as in variable 'x'. But matlab function given an error. kingly ghide me. or matlab show output of a single value. I want to do these calculations as a vector.
x = [600*10^-9:5*10^-9:800*10^-9];
for i = 1:numel(x)
q = integral(f,6e-7, x);