Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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 Ansicht (letzte 30 Tage)
% *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 ??

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by