Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How do I uses the information from this code in the optimization tool?
1 回表示 (過去 30 日間)
古いコメントを表示
clear all;
clc;
Fi=1000;
Se= 50;
Su= 450;
C= 2/3;
nf=[];
Pmax= 3662.5;
Pmin= 1000;
D=2:01:6;
for k = 1:numel(D)
A= 0.25*pi*(D(k))^2;
siga= ((C*Pmax+Fi)-(C*Pmin+Fi))/2*A;
sigm= ((C*Pmax+Fi)+(C*Pmin+Fi))/2*A;
sigi= sigm-siga;
nf(k)= (Se*(Su-sigi))/(siga*(Su+Se));
end
figure(1)
plot(D,nf)
xlabel('D');
ylabel('nf');
2 件のコメント
Ameer Hamza
2018 年 4 月 23 日
You didn't provide a clear description of your problem. It is not easy to just look at a code and try to understand what you are trying to do.
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!