From 05338d2a6faa409a4fe17381a66e40f02bf43296 Mon Sep 17 00:00:00 2001 From: Joshua Eastman Date: Mon, 25 Jul 2022 11:01:03 -0400 Subject: [PATCH] Define input for single point cloud in .mat file Previously, the variable "P" was not defined for lines 89 and beyond if the .mat file with point clouds to be processed only contained a single point cloud. By moving the definition of P outside the nt > 1 condition, P is defined in the case of only one point cloud, and nothing is different if nt > 1. --- src/tools/define_input.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/define_input.m b/src/tools/define_input.m index 76602ac..72d9311 100644 --- a/src/tools/define_input.m +++ b/src/tools/define_input.m @@ -72,9 +72,9 @@ %% Estimate the PatchDiam and BallRad parameters for i = 1:nt + % Select point cloud + P = matobj.(names{i}); if nt > 1 - % Select point cloud - P = matobj.(names{i}); inputs(i) = Inputs; inputs(i).name = names{i}; inputs(i).tree = i;