MATLAB: How can i solve this equation for t , knowing all other variables

equation

d_ball=147*10^-3;%m
mass=1.52;%kg
g=9.81;
Cd_sphere=1; %!!
rho=1.225;
area=pi*(d_ball^2);
k=(Cd_sphere*rho*area)/(2*mass);
y=0:1:150;
V=25;
N=g./k;
Q=g./(k.^2);
(N.*t)-(Q.*(1-exp(-k*t)))-y=0

Best Answer

Hi
the plot of
y = @(t) (N.*t)-(Q.*(1-exp(-k.*t)));
shows that the only zero of t is t=0
trying smaller t windows
t=[-.1:1e-4:.1];p = (N.*t) - (Q.*(1 - exp(-k*t))) - y;plot(t,p)
t=[-.001:1e-6:.001];p = (N.*t) - (Q.*(1 - exp(-k*t))) - y;plot(t,p)
there are no such t>0 and t<0 zeros.
if you find this answer useful would you please be so kind to consider marking my answer as Accepted Answer?
To any other reader, if you find this answer useful please consider clicking on the thumbs-up vote link
thanks in advance
John BG