So I´m just new on MATLAB and this may be a very silly doubt but when generating basic signals for signal processing I have this:
t = (-1:0.01:1)';
impulse = t==0; plot(t,impulse)
(from: https://www.mathworks.com/help/signal/gs/impulse-step-and-ramp-functions.html)
So I know that will plot a unit impulse yet I can't see what t==0 is doing there. AT time instant = 0 it will go up to 1, as expected, but why? More specifically, can anyone explain me what the "==" is telling MATLAB to do?
Thank you so much