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