Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to write an optimization Program? can anyone tell me with the help of a matlab program using the program below? I dont know about optimizing. so i couldnt proceed. help please

1 次查看(过去 30 天)
% *I have 2 variables .
n=[1:.0001:9];
d = linspace(1, 100, length(n));
% i have to put them in these formulas.
[a]=d.*n;
p= (2*pi*[a]*cos(45))/300; % 45 IS IN DEGREES .
[A]=cos(p);
[B]=(1i.*sin(p)/n);
[C]=1i.*n.*sin(p);
[D]=cos(p);
% Reflection coefficient (r)
n(1)=3;
n(3)=5;
[r] = real((n(1).*[A]+n(1).*n(3).*[B]+[C]-n(3).*[D])./(n(1).*[A]+n(1).*n(3).*[B]+[C]+n(3).*[D]));
% REFLECTIVITY
R=([r].^2)*100;
% I need to get the R=30. and show what variables of 'n' and 'd' gets R=30. R=reflectivity .
% This i have to do using optimization. Can any1 do it ??

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by