Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
dot-tracking-package/remove_nan_entries_from_sizing.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
22 lines (21 sloc)
710 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function size_results_new = remove_nan_entries_from_sizing(size_results) | |
% Function to remove nan entries from sizing results | |
% | |
% INPUTS: | |
% size_results: results from sizing | |
% | |
% OUTPUTS: | |
% size_results_new: updated results with nan entries removed | |
% | |
% AUTHORS: | |
% Lalit Rajendran (lrajendr@purdue.edu) | |
% identify rows containing nan elements | |
[nan_r, ~] = find(isnan(size_results.XYDiameter)); | |
% create data structure to hold new results | |
size_results_new = size_results; | |
% remove corresponding entries | |
size_results_new.XYDiameter(nan_r, :) = []; | |
size_results_new.mapsizeinfo(nan_r, :) = []; | |
size_results_new.locxy(nan_r, :) = []; | |
size_results_new.mapint(nan_r) = []; | |
end |