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
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
John D'Errico
2016-4-16
编辑:John D'Errico
2016-4-16
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.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!