Clear Filters
Clear Filters

WHY I GET NAN FROM "IMPIXCEL"

3 views (last 30 days)
mandana
mandana on 9 Feb 2018
Commented: mandana on 11 Feb 2018
I want to read an image and get color of pixells but the result from "impixel" for some pixels is NAN why" please help me
  3 Comments
mandana
mandana on 9 Feb 2018
pixels that are nan sounds like what? how can i recognize them?
mandana
mandana on 11 Feb 2018
thanks alot

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 9 Feb 2018
If you specified row and column numbers to impixel() and they were outside of the image, then you would get NaN returned.
Watch out that impixel expects column (x coordinate) to be passed in before row (y coordinate)

Community Treasure Hunt

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

Start Hunting!