diff options
Diffstat (limited to 'inst/arrays/@stk_factorialdesign/fieldnames.m')
-rw-r--r-- | inst/arrays/@stk_factorialdesign/fieldnames.m | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/inst/arrays/@stk_factorialdesign/fieldnames.m b/inst/arrays/@stk_factorialdesign/fieldnames.m index 8136bcf..ef4bef1 100644 --- a/inst/arrays/@stk_factorialdesign/fieldnames.m +++ b/inst/arrays/@stk_factorialdesign/fieldnames.m @@ -2,7 +2,7 @@ % Copyright Notice % -% Copyright (C) 2015 CentraleSupelec +% Copyright (C) 2015, 2020 CentraleSupelec % Copyright (C) 2014 SUPELEC % % Author: Julien Bect <julien.bect@centralesupelec.fr> @@ -12,7 +12,7 @@ % This file is part of % % STK: a Small (Matlab/Octave) Toolbox for Kriging -% (http://sourceforge.net/projects/kriging) +% (https://github.com/stk-kriging/stk/) % % STK is free software: you can redistribute it and/or modify it under % the terms of the GNU General Public License as published by the Free @@ -30,13 +30,14 @@ function fn = fieldnames (x) fn = fieldnames (x.stk_dataframe); -fn = [{'levels' 'stk_dataframe'} fn]; +fn = [{'levels'; 'stk_dataframe'}; fn]; end % function + %!test %! x = stk_factorialdesign ({0:1, 3:5}, {'u' 'v'}); %! fn1 = sort (fieldnames (x)); -%! fn2 = {'colnames', 'data', 'info', 'levels', ... -%! 'rownames', 'stk_dataframe', 'u', 'v'}; +%! fn2 = {'colnames'; 'data'; 'info'; 'levels'; ... +%! 'rownames'; 'sample_size'; 'stk_dataframe'; 'u'; 'v'}; %! assert (isequal (fn1, fn2)); |