MLMissingDataAsNaN - Set empty cells to NaN or 0

Syntax

Worksheet:

MLMissingDataAsNaN("yes")

MLMissingDataAsNaN("no") (Default)

Macro:

MLMissingDataAsNaN "yes"

MLMissingDataAsNaN "no" (Default)

"yes"

Sets empty cells to use NaNs.

"no"

Sets empty cells to use 0s. (Default)

Description

Sets empty cells to NaN or 0. When the Spreadsheet Link™ EX software is installed, the default is "no", so empty cells are handled as 0s. If you change the value of MLUseCellArray to "yes", the change remains in effect the next time a Microsoft® Excel® software session starts.

Examples

Cancel the use of NaNs for empty cells:

MLMissingDataAsNaN('no")

See Also

MLPutMatrix

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS