Can somebody explain this function?
Ältere Kommentare anzeigen
function feasible=feasiblePoint(point,map)
feasible=true;
% check if collission-free spot and inside maps
if ~(point(1)>=1 && point(1)<=size(map,1) && point(2)>=1 && point(2)<=size(map,2) && map(point(1),point(2))==1)
feasible=false;
end
2 Kommentare
Stephen23
am 31 Aug. 2018
"Can somebody explain this function?"
Its author, and the code comments that they should have written.
passioncoding
am 31 Aug. 2018
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Data Analysis finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!