mohamad.momeny
Newbie level 4
I need to:
convert Following matlab code to visual basic 2010 code.
matlab code:
t = [t,(t0+dt1:dt1:t1)]
nt = length(t)
x(it0+1:nt) = x0 + vx*(t(it0+1:nt)-t0)
y(it0+1:nt) = y0 + vy*(t(it0+1:nt)-t0) - 0.5*g*(t(it0+1:nt)-t0).^2
convert Following matlab code to visual basic 2010 code.
matlab code:
t = [t,(t0+dt1:dt1:t1)]
nt = length(t)
x(it0+1:nt) = x0 + vx*(t(it0+1:nt)-t0)
y(it0+1:nt) = y0 + vy*(t(it0+1:nt)-t0) - 0.5*g*(t(it0+1:nt)-t0).^2