cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

MATHCAD - how do I change a function f(x) to a vector so that I can use it in subsequent evaluations (e.g. interpolate)?

rmartin-2
1-Visitor

MATHCAD - how do I change a function f(x) to a vector so that I can use it in subsequent evaluations (e.g. interpolate)?

I have a time domain function (damped sine) in MATHCAD that needs to be fft, then attenuated by a frequency dependent vector. To do that I need to:

- perform fft on function

- interpolate the fft with the attenuation

I have tried VECTORIZED with no success. Can anyone help with creating a vector/matrix from a function?

ACCEPTED SOLUTION

Accepted Solutions
StuartBruff
23-Emerald III
(To:rmartin-2)

Robert Martin wrote:

I have a time domain function (damped sine) in MATHCAD that needs to be fft, then attenuated by a frequency dependent vector. To do that I need to:

- perform fft on function

- interpolate the fft with the attenuation

I have tried VECTORIZED with no success. Can anyone help with creating a vector/matrix from a function?

Could you please post your worksheet so that others can see what you've done?

Thanks,

Stuart

View solution in original post

4 REPLIES 4
StuartBruff
23-Emerald III
(To:rmartin-2)

Robert Martin wrote:

I have a time domain function (damped sine) in MATHCAD that needs to be fft, then attenuated by a frequency dependent vector. To do that I need to:

- perform fft on function

- interpolate the fft with the attenuation

I have tried VECTORIZED with no success. Can anyone help with creating a vector/matrix from a function?

Could you please post your worksheet so that others can see what you've done?

Thanks,

Stuart

Stuart - unfortunately, the attached won't tell you much. As you can imagine, I have been trying lots of things; getting frustrated; deleting my attempts.

The worksheet simply defines a function of (t) to define a damped sine waveform with a fundamental frequency that can be adjusted (currently 10^4).

StuartBruff
23-Emerald III
(To:rmartin-2)

Robert Martin wrote:

Stuart - unfortunately, the attached won't tell you much. As you can imagine, I have been trying lots of things; getting frustrated; deleting my attempts.

The worksheet simply defines a function of (t) to define a damped sine waveform with a fundamental frequency that can be adjusted (currently 10^4).

Is the attached something like what you are after?

Stuart

Stuart - this works well.

As an aside - explanation of cfft is very useful. To date, when calculating FFT, I have been forcing everything to power of 2 in order to make fft work. Thank you. Bob

Announcements

Top Tags