function [cando, msg] = setobject(this, object, ~)
%SETOBJECT   Set function for possible object update.

%   Author(s): J. Sun
%   Copyright 2009-2023 The MathWorks, Inc.
%     

cando = true;
msg = '';

stim = object.defaulttbstimulus;
impulse = false;
step = false;
ramp = false;
chirp = false;
noise = false;
for i=1:length(stim)
    impulse = impulse || strcmpi(stim{i}, 'impulse');
    step = step || strcmpi(stim{i}, 'step');
    ramp = ramp || strcmpi(stim{i}, 'ramp');
    chirp = chirp || strcmpi(stim{i}, 'chirp');
    noise = noise || strcmpi(stim{i}, 'noise');   
end

this.Impulse = impulse;
this.Step = step;
this.Ramp = ramp;
this.Chirp = chirp;
this.Noise = noise;

% [EOF]
