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 日間)
ABHISEK MOHANTY
ABHISEK MOHANTY 2015 年 2 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
% *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