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
Info
This question is closed. Reopen it to edit or answer.
Show older comments
% *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 ??
1 Comment
Image Analyst
on 22 Feb 2015
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!