getting a parse error at '='

4 views (last 30 days)
ankita
ankita on 4 Mar 2014
Commented: ankita on 4 Mar 2014
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)

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!