MATLAB: Is it correct? (dirac delta function) stem Hi. I want to stem this function, and this is my code. i wonder it is correct. Best Answer no it should be 2*(n==0)However there is another sense in which dirac(x) should be infinite when x is 0 instead being 1. Related SolutionsMATLAB: How can i set a contition in a symbolic function (use only even numbers) I fixed the problem using the geometrical series convergence for specified Z values.syms n a=2;z1=5;z2=10;antwoord4_1=double(symsum(a^(2*n)/z1^(2*n),0,Inf))antwoord4_1=double(symsum(a^(2*n)/z2^(2*n),0,Inf)) MATLAB: Is this correct function A= matrixfn(m,n) A = zeros(m,n) ; for i=1:m for j=1:n A(i,j)=i^2 + j^2; end endSave the above function in a folder. Go to that folder in MATLAB. And you can call it by:A = matrixfun(2,2) ;B = matrixfun(5,5) ;C = matrixfun(6,9) ; Related QuestionCan any one tell me how to find z transform of unit step?Isjava not correctZ-transform of unit step function
Best Answer