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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Sampling a conditional function for DFT not working

Pixel123
3-Visitor

Sampling a conditional function for DFT not working

Hello everyone,

 

I would like to sample a half sine, so I made a conditional function which represents the halve sine. It plots perfectly. However when I try to sample it, it does not work the same anymore as the regular sine function, and therefore I cannot get the DFT.


Any Ideas?

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:Pixel123)

Due to the multiplication with the condition, the result in f1 is no longer a vector.

You should vectorize the multiplication, to get a vector as result.

 

See attached.

 

Success!
Luc

View solution in original post

2 REPLIES 2
LucMeekes
23-Emerald III
(To:Pixel123)

Due to the multiplication with the condition, the result in f1 is no longer a vector.

You should vectorize the multiplication, to get a vector as result.

 

See attached.

 

Success!
Luc

Thank you very much Sir. Feel a bit stupid that I missed this! Will definitely remember this now.

Top Tags