NaN values of head model matrix

hello,
When I export the head model to MATLAB, there are a few NaN values in the Gain matrix. What is the cause?
Thanks for your help.
image

You should find entire rows of NaN for bad channels and non-EEG channels.

OK. that is right. Thanks a lot.