Why won't my graph plot
2 次查看(过去 30 天)
显示 更早的评论
x = (v^2*sin(theta)^2)/g; % Where the projectile lands if it does not split it up
y = x*tan(theta)-(g*x^2)/(2*v^2*cos(theta)^2);% The trajectory the projectile takes.
plot(x,y)
5 个评论
Kevin Phung
2019-1-23
So it is plotting, but just a point.
You cant get a curve if you dont have a variable in your equation.
回答(2 个)
Image Analyst
2019-1-25
编辑:Image Analyst
2019-1-25
My attached projectile program (developed by me duing my son's college physics class) plots and computes just about everything you could possibly want regarding a drag-free projectile.


0 个评论
madhan ravi
2019-1-24
Put dots in front of ^ and * (element wise operation ) since x is a vector , you will get a curve.
7 个评论
Chad Greene
2019-2-15
@ImageAnalyst, they're easiest to find in the McMurdo Dry Valleys, where there's very little weathering. Footprints can stick around for decades there.
Image Analyst
2019-2-16
Are they sitting on the snow, or gravel? How do they find them? By sight (sitting on snow) or my metal detectors?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Oceanography and Hydrology 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!