th.WaveletTranslation)
   msg = struct('identifier', 'Ident:utility:realMatrixRequired', 'message', ...
      sprintf('"%s" must be a real matrix.','Parameters.WaveletTranslation'));
   return
end
if size(th.WaveletTranslation,1)~=nwv
   msg = struct('identifier', 'Ident:utility:incorrectNumRows', 'message', ...
      sprintf('"%s" must have %d row(s).', 'Parameters.WaveletTranslation',nwv));
   return
end
if size(th.WaveletTranslation,2)~=nldim
   msg = struct('identifier', 'Ident:utility:incorrectNumCols', 'message', ...
      sprintf('"%s" must have %d column(s).', 'Parameters.WaveletTranslation',nldim));
   return
end

%===========================
function msg1 = ParametersFieldsMsg(fldnames)
% Generate Parameters fields error message

choice = '';
for j = 1:length(fldnames)
   choice = [choice(:)' '''' fldnames{j} ''', '];
end

msg1 = sprintf('Parameters must be a structure with the fields: %s.',choice(1:end-2));
msg1 = struct('identifier', 'Ident:utility:pstructFormat', 'message', msg1);

function is = localisrealrowvec(x)
is = (isreal(x) && isrow(x) && isnumeric(x));


function is = localisrealmat(x)
is = (isreal(x) && ismatrix(x) && isnumeric(x));
