I'm integrrating the signal sawtooth using the function "integral" such that "0" min limit and "i" is the max limit to get values of theta to plot it with time but there is an error 'Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.'
Can you help please ?
fs = 1000;kf=1000;t = 0:1/fs:2;signal = @(tt) sawtooth(pi*2*tt+pi);theta=[];for i = (0:1/fs:2)theta=2*pi*kf*integral(signal,0,i);endplot(t,theta[i])
Best Answer