view getVarname.m @ 777:0776fa4754ff feature/grids grids0.1

Switch to assertSize from assert_size
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 23 Jul 2018 09:33:26 -0700
parents 289fd8b1635c
children
line wrap: on
line source

function names = getVarname(varargin)
    names = cell(size(varargin));

    for i = 1:numel(varargin)
        names{i} = inputname(i);
    end
end