Does anyone know if there is a an equivalent mcad function to the filter() function in MathLab? Don’t think there is . See picture in attached file attached
I am looking at the standard SRS calculation but the recursive loop is not producing what is expected.
I had a 1st pass attempt at writing the loop for a well defined input signal but something's not right. I must have screw up the loop
response(v, C1, n) Returns a n-element vector giving the response of input vector v to an FIR or IIR filter with coefficient array C1. Uses direct evaluation of the convolution. For a long input signal, this method can be quite slow.
I don't want to claim that this is a perfect implementation of the Matlab 'filter' function. It comes close in some respects, but it seems the output needs to be shifted to the left.
Perfection is a state of mind !
Not sure what is the problem. re-worked with use of vector multiplication (looks neater!) (idea from your post !)
Normally if one was to run the scheme with 1 freq of interest and output (and plot) all the x'' then one should have the response (over time).
you can find something about analog and digital filters in mathcad help, see the picture below and follow the arrow .
Further more you can find something else again searching in the community worksheets.
A few years ago, I created some worksheets relating to analog filters and equivalent digital filters, which I, then, transferred to the community, you can search for them and see if you find something that interests you. They are published in both pdf and xmcd formats. The latter, however, at the opening present the bitmap images all out of place and so there is a bit of confusion, which does not happen in pdf files obviously.
Thanks for the suggestion but no. A simple/straightforward SRS plot (boring stuff)
I am still playing with different approach 1-program vs. 2 but this is purely cosmetic
looks like the output (time history for a given frequency and Q value) is working but if I run the recursive scheme for a range of frequency I don't get the expected plot