필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How do I uses the information from this code in the optimization tool?

조회 수: 1 (최근 30일)
Liam Swift
Liam Swift 2018년 4월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Liam Swift
Liam Swift 2018년 4월 23일
Trying to find the nf from the code.
Ameer Hamza
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.

https://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by