フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Why isn't my code working?

1 回表示 (過去 30 日間)
Collin Kerr
Collin Kerr 2016 年 4 月 18 日
閉鎖済み: Star Strider 2016 年 4 月 19 日
%8 to 15 meters is the range
%Velocity is 0,15,30,45,60,75,90
clc,clear
F = input('Targeted Distance = ');
V_o = input('Velocity at launch = ');
S_o = input('Elevation angle at launch = ');
a=9.81; %Its a given
b=V_o*sind(S_o) %It makes the coding a bit less confusing.
c=0; %Also a given
fprintf('The targeted distance for the launch is %d meters. \n', F)
fprintf('The velocity for the launch is %d meters per second. \n', V_o)
fprintf('The elevation angle for the launch is %d degrees. \n', S_o)
disp(Q1)

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by