Info

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

How to implement this algorithm?

조회 수: 2 (최근 30일)
Barry Allen
Barry Allen 2020년 4월 19일
마감: MATLAB Answer Bot 2021년 8월 20일
How to implement this algorithm?
  댓글 수: 3
Barry Allen
Barry Allen 2020년 4월 19일
clc
close all
T=1;
tow_min=0;
tow_max=T;
while (tow_max-tow_min > 0.8)
tow_bar=(tow_max+tow_min)/2;
if crn(tow_bar)==crn(tow_min)
tow_min=tow_bar;
else
tow_max=tow_bar;
end
end
tow0=tow_bar;
i have done this far and i dont understand how to obtain the time from this algorithm
darova
darova 2020년 4월 19일
I think this line should be changed:
% if crn(tow_bar)==crn(tow_min)
if crn(tow_bar) < 0

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by