P
Pete Fraser
Guest
I'm simulating some filter hardware in Modelsim, and need
a way to display the output with a virtual anti-alias filter.
Is there a Matlab facility for this?
plot doesn't seem to have any good option for this.
I tried interp1, and it's better than nothing, but the
highest order interpolator seems to be 4-tap ('spline').
I could do a higher order filter myself, but feel that Matlab
probably has the ideal functionality already, if I only
knew how to invoke it.
Any thoughts.
Example:
Generate a DC to Nyquist sweep
Thanks
Pete
a way to display the output with a virtual anti-alias filter.
Is there a Matlab facility for this?
plot doesn't seem to have any good option for this.
I tried interp1, and it's better than nothing, but the
highest order interpolator seems to be 4-tap ('spline').
I could do a higher order filter myself, but feel that Matlab
probably has the ideal functionality already, if I only
knew how to invoke it.
Any thoughts.
Example:
Generate a DC to Nyquist sweep
t = 0:0.001:1;
y = chirp(t, 0, 1, 500);
plot
Looks crunchy as hell.
Nyquist (as you'd expect from a 4-tap lpf).ti = 0:0.0001:1;
yi = interp1(t, y, ti, 'spline');
plot(yi)
Now looks much better, but still quite aliased towards
Thanks
Pete