How to implement this algorithm?

How to implement this algorithm?

3 Commenti

KSSV
KSSV il 19 Apr 2020
What have you tried so far?
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
I think this line should be changed:
% if crn(tow_bar)==crn(tow_min)
if crn(tow_bar) < 0

Risposte (0)

Questa domanda è chiusa.

Tag

Richiesto:

il 19 Apr 2020

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by