Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

how can I make this loop in matlab

1 visualización (últimos 30 días)
areej abdulshaheed
areej abdulshaheed el 5 de Mzo. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
  6 comentarios
darova
darova el 5 de Mzo. de 2020
I voted for your question so you can get help faster
Bruno Luong
Bruno Luong el 28 de Jul. de 2020
I voted for your question so you can get help faster
What if you haven't made a vote? :-)

Respuestas (1)

Maria
Maria el 28 de Jul. de 2020
Your logic path translates to something like this:
while (1)
[obstfront, minobs] = URG_scane ();
if (obstfront > minobs)
%Rise head
%URG_scane
if (obstfront > minobs)
%Put downs the head
%URG_scane
if (obstright < minobs)
%Turn right 60 min
elseif (obstleft < minobs)
%Turn left 60 mins
else
%Go backward (20 min)
break;
else
%Obstacle climbing 100 mins
end
else
%Go forward 20 MIN
end
end
You should now write the code for each different function (as URG_scane, Go_forward, etc.). Hope this helps!

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by