view getVarname.m @ 828:f82da6644f42 feature/operator_files

Fixed bug in tests
author Ylva Rydin <ylva.rydin@telia.com>
date Mon, 10 Sep 2018 19:17:41 +0200
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