getting a parse error at '='

fft_values[abs(fft_values) < threshold] = 0;
I am getting error as: parse error at '='. How should i rectify it?

 Accepted Answer

per isakson
per isakson on 4 Mar 2014
Edited: per isakson on 4 Mar 2014
Try
fft_values( abs(fft_values) < threshold ) = 0;
Matlab uses "()"

More Answers (0)

Tags

Asked:

on 4 Mar 2014

Commented:

on 4 Mar 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!