how can i compare Pexit which is the output of outlet to Pback given. By approximating after checking for greater/less than conditions.Ive already wrote code but main function is that of nozzelcalculator that result Pexit
조회 수: 1 (최근 30일)
이전 댓글 표시
for n=1:1:10 %%dont want it to have necessarly specific endingnumber
outlet=Pexit;
if
for n=1:1:10 %%dont want it to have necessarly specific endingnumber
% outlet is an output of function which takes inputs, one being As which is location we guess at first
% im given Aexit
% iF Pexit>Pback have to new location of As by taking midpoint of first guess and Aexit
% if Pexit<Pback have to take As by taking midpoint of third and second guess
% do this till we can approximate Pexit to Pback
outlet=Pexit;
if Pexit > Pback
As=An+Aexit/2;
elseif Pexit < Pback
As=As+As-1/2;
end
end
%im strugling to create this part comparing
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!