'Dipol moment integral

I would like this calculate dipol moment integral

enter image description here

This is my code:

fi_1 = @(r) (1/(2*pi)^(0.5))*exp((1i*r)./R); % wave function the fist state
fi_3 = @(r) (1/(2*pi)^(0.5))*exp((1i*3*r)./R); % wave function the third state

fun_13 =  @(r) fi_1.*e*r.*fi_3; %dipol moment funstion

d_13 = integral(fun_13,0,R_1);

However, it returns this error:

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source