MATLAB: Sampling sawtooth sequence at high rate

MATLABsampling rate

why matlab give error fs = 10000 n=0:10000 t = 0:1/fs:1.5; x1 = sawtooth(2*pi*50*t); subplot(2,1,1) stem(n,x1) axis([0 0.1 -1.2 1.2])

Best Answer

fs = 10000
t = 0:1/fs:1.5;
x1 = sawtooth(2*pi*50.*t);
subplot(2,1,1)
stem(x1)
xlim([1 200])