comparison m-toolbox/classes/tests/@ltpda_utp/getTestData.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % GETTESTDATA returns the testData array or an empty object of the correct
2 % class if testData is empty.
3 function data = getTestData(utp)
4 if isempty(utp.testData)
5 data = feval(utp.className);
6 else
7 data = utp.testData;
8 end
9 end