I need to know whether my projectline goes between the goal posts on 3d plot. Should i use if stamentet or while loop and if so how? This is what i've tried
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
if xyz(:,1) >= 31.25
elseif xyz(:,1) <= 36.75
elseif xyz(:,2) >= 98
elseif xyz(:,2) <= 102
elseif xyz(:,3) >= 3
disp('successful');
else
disp('unsuccessful');
end
1 Kommentar
John D'Errico
am 16 Apr. 2016
Bearbeitet: John D'Errico
am 16 Apr. 2016
Please learn to format pasted in code to be readable. Use the "{} Code" button for that purpose. I've done that for you here this time.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!