getting a parse error at '='

1 view (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)

Tags

Community Treasure Hunt

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

Start Hunting!