Code covered by the BSD License  

Highlights from
exciseRows

from exciseRows by Alexander Taylor
A helper function. Removes all rows with NaNs.

exciseRows(inputMatrix)
% exciseRows.m
% A helper function. Removes all rows with NaNs. 

function [outputMatrix] = exciseRows(inputMatrix)

	inputMatrix(any(isnan(inputMatrix),2),:) = [];
	outputMatrix = inputMatrix;

Contact us at files@mathworks.com