How to calculate the optimal thickness
11 views (last 30 days)
Show older comments
MAROUANE ENNAGADI
on 19 Nov 2019
Commented: MAROUANE ENNAGADI
on 23 Nov 2019
Hello,
I want to calculate optimal thickness from this program, and I did not how to do it.
Please I need your help,
clear all;
clc;
lambda=1.55e-6;
n1=input('introduire l''indice optique n1 ');
n2=input('introduire l''indice optique n2 ');
n3=input('introduire l''indice optique n3 ');
d=linspace(0,500e-9,100);
R=(((n1*n3-n2^2)^2*sin((2*pi/lambda)*n2*d).^2+n2^2*(n3-n1)^2*cos((2*pi/lambda)*n2*d).^2)./((n1*n3+n2^2)^2*sin((2*pi/lambda)*n2*d).^2+n2^2*(n3+n1)^2*cos((2*pi/lambda)*n2*d).^2));
plot(d,R)
title('R=f(d)');
xlabel('d(m)');
ylabel('R');
3 Comments
Adam Danz
on 20 Nov 2019
What is d(m) and R and how do we use these data to determine thickness? What do you consider to be optimal?
Accepted Answer
Ridwan Alam
on 20 Nov 2019
Assuming, optimal thickness yields maximum refraction,
m = find(R==max(R))
optimal_thickness = d(m)
% ans =
% 1.9192e-07
More Answers (0)
See Also
Categories
Find more on Problem-Based Optimization Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!