MATLAB Answers

how to find the closest values with tolerance in a matrix given a specific value

205 views (last 30 days)
kostas zervos
kostas zervos on 6 Sep 2016
Edited: michio on 6 Sep 2016
Hi everyone, i have a problem finding values with tolerance in a matrix.In more detail, i have a 601x2201 matrix that contains option values, all i want is to find the closest values to 185.2 with +-0.02 tolerance and their indexes in the matrix.i have tried some codes to solve this(ismember,find,...) but always i end up with no answer.i would appriciate any help.Thank you for your time.

  0 Comments

Sign in to comment.

More Answers (1)

kostas zervos
kostas zervos on 6 Sep 2016
Thank you guys,you saved me!!!both answers are very helpful!!!

  1 Comment

Sign in to comment.

Sign in to answer this question.