diff --git a/loadSCase.m b/loadSCase.m index 776f1e5..b9064e5 100644 --- a/loadSCase.m +++ b/loadSCase.m @@ -1,16 +1,21 @@ function output = loadSCase(SCaseID) % Load a ShoulderCase from the database % % Inputs: id char of shoulder case (e.g. 'P315') % % Output: Corresponding ShoulderCase object % % Example: SCasePlotter = plotSCase('P315'); % addpath(genpath('ShoulderCase')); database = ShoulderCaseLoader; - SCase = database.loadCase(SCaseID); + + if isequal(SCaseID, "*") + SCase = database.loadAllCases(); + else + SCase = database.loadCase(SCaseID); + end output = SCase; end \ No newline at end of file