how to calculate theta
4 次查看(过去 30 天)
显示 更早的评论
theta = 0:1:90;
3010 == Xo + (V .* cosd(theta)) .* t
I'm trying to calculate the angle needed to travel 3010 ft but I keep getting this error message
Arrays have incompatible sizes for this operation.
Error in lab2 (line 30)
3010 == Xo + (V .* cosd(z)) .* t
回答(1 个)
Walter Roberson
2021-9-20
Xo = 1234;
V = 20000;
syms theta
t = .1:.1:1;
eqn = 3010 == Xo + (V .* cosd(theta)) .* t
thetas = double(arrayfun(@(E) vpasolve(E), eqn));
plot(t, thetas)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!