F=[];A=[];for f=0:200:1800 F =[F,f]; %in HZ
f0 = 500;% in Hz
f1= 1500;% in Hz N = 20; a = 0:5:25 a= abs((a*sin[pi(f-f0)*N]))/ (sin[pi(f-f0)]))+ abs((a*sin[pi(f-f1)*N]))/ (sin[pi(f-f1)])); A= [A, a];endplot (F, A)
MATLAB: I have a code but it keep saying “invalid expression. when calling a function or indexing a variable, use parentheses. otherwise check for mismatched delimiters.
please help
Best Answer