Why would I be getting "NaN" from a matrix I entered?
Show older comments
Hey all,
I seem to be getting a "NaN" from a matrix I entered as a variable while using the function griddata. Is there any obvious reason for this? Possibly difficulty interpolating a value?
1 Comment
You have nan in your matrix? Your matrix was created with nan. Your input data is wrong? You are a victim of a practical joke involving team mates and corruption of data? Your computer decided that it wanted a retirement?...
Sorry, but no one is all knowing. The does most likely come from a bug in the implementation. Then we need to know where it went wrong. There is many ways to get nan, so the problem is what you did to get nan.
Accepted Answer
More Answers (1)
Image Analyst
on 24 Oct 2014
0 votes
Maybe you entered the letter "o" instead of zero?
Categories
Find more on Interpolation of 2-D Selections in 3-D Grids in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!