I'd bet it's because you, for some reason, decided to change the name of the variable from u, which your professor wanted, to X. And you didn't even use t AT ALL !
Why did you do that? Give him what he wants.
I'd bet it's because you, for some reason, decided to change the name of the variable from u, which your professor wanted, to X. And you didn't even use t AT ALL !
Why did you do that? Give him what he wants.
Maybe he wants the results presented in columns?
tmax = 50; step = 5; t = (0:step:tmax)'; % make it a column X = [t,10*(1 - exp(-0.2*t))]; % put the result in columns
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!