I'm having trouble with an asignment (I started using Matlab a day ago) in which I need to get the magnitude of a difference equation as well as get the unit impulse response and store it in an array.
After some time looking online, and teaching myself how to do the z-transform, I managed to get this as my code:
A = [0.2 0 0 0 0 0 0 0 0 0 0.34];
B = 1;
H = filt(A,B);
figure;
bode(H);
figure;
impulse(H);
The only probelm is that it isn't what my professor is looking for nor would he give an indication of what to do. I can't seem to find any documents online to help me with the problem, I'm not sure what it would fall under, however I think that I need to use the frequency response function? Any help would be much appreciated.