fs = 44100; Ts = 1 / fs; t = [2 5]; % start and end times in seconds tvals = t(1):Ts:t(2); y = [4 2]; m = diff( y ) / diff( t ) plot( tvals, y(1)+m*(tvals-t(1)) ) xlabel('Time (seconds)'); ylabel('Amplitude');
![]() | ©2004-2025 McGill University. All Rights Reserved. Maintained by Gary P. Scavone. |