# how to solve white light interferometer interference equation when white light is used.

5 visualizaciones (últimos 30 días)
Ankit Raway el 19 de Oct. de 2022
Editada: Walter Roberson el 10 de Oct. de 2023
HI
I want to solve an interference equation which is in the form of numerical integration and below are some variables with values
bandwidth range : 11.4 to 14.3
bandwidth range (k) : 11.4 to 14.3
sin(theta_not)=0.4
z: means the position so at each z position we have to calculate 'I'. we can use linspace for ramge of z.
I want to plot 'I' wrt 'z'
Below is the link of paper for reference.
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

### Respuesta aceptada

Rangesh el 9 de Oct. de 2023
Hello Ankit,
I understand that you would like to plot the interference function, which is a function of z. Below is the provided sample code to integrate the function:
z = 1:20;
I = zeros(size(z));
% In the given code, we iterate over the values of z and calculate the double integral
% of the specified function for each z value. The results are stored in the array I.
for i = 1:numel(z)
fun = @(k, theta) z(i) ./ (k + theta);
I(i) = integral2(fun, 0, 1, 0, 1);
end
%Finally, plotting the interference values against the corresponding z values
plot(z,I);
xlabel('z');
ylabel('Interference (I)');
title('Interference vs. z');
Attached the link on the function “intergral2” for your reference: https://www.mathworks.com/help/matlab/ref/integral2.html
I hope this resolves your query.
Thanks,
Rangesh.
##### 1 comentarioMostrar -1 comentarios más antiguosOcultar -1 comentarios más antiguos
Ankit Raway el 10 de Oct. de 2023
Hello Rangesh , I already solved this one but really thanks for providing solution to it , I think your way is much more better than mine because I just used for loops for summation and discretized it.
Anyways do you use linkedln so that we can connect and discuss

Iniciar sesión para comentar.

### Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by