Skip to content
Snippets Groups Projects
Verified Commit 18b4a856 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

subsample: check for correct number of arguments to function

parent fbd5f420
Branches
No related tags found
No related merge requests found
......@@ -41,6 +41,10 @@ function p = subsample(o, d1, d2) % --*-- Unitary tests --*--
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if nargin < 1 || nargin > 3
error('function takes 1 to 3 arguments')
end
if nargin == 1
p = copy(o);
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment