필터 지우기
필터 지우기

i'm getting an error that inputs should be scaler on "t=linspac​e(0,t_flig​ht,30);"

조회 수: 1 (최근 30일)
Mahmoud Chawki
Mahmoud Chawki 2021년 4월 21일
댓글: Jan 2021년 4월 21일
v0=app.InitialvelocityEditField.Value;
y0=app.InitialheightEditField.Value;
theta=app.InitialangleEditField.Value;
g=app.gEditField.Value;
x0=0;
b=v0*sin(pi*(theta/180));
a=-g/2;
c=y0;
t_flight=(-b-sqrt(b^2-4*a*c))/(2*a);
t_flight=app.FlighttimeEditField.Value;
range=v0*cos(pi*(theta/180))*t_flight;
range=app.DistancetraveledEditField.Value;
t=linspace(0,t_flight,30);
xdot0=v0*cos(pi*(theta/180));
ydot0=v0*sin(pi*(theta/180));
m_y=y0+(v0.^2)*(sin(pi*(theta/180)))^2/(2*g);
m_y=app.maximumheightEditField.Value;
x=x0+xdot0*t;
y=y0+ydot0*t-(g/2)*t;
plot(app.UIAxes,x,y)
legend(app.UIAxes,'projectile')
  댓글 수: 7
Mahmoud Chawki
Mahmoud Chawki 2021년 4월 21일
it is the time traveled by the projectile (from 0 to x)
Jan
Jan 2021년 4월 21일
@Mahmoud Chawki: Image Analysts asked for the value and type, not the meaning.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by