view m-toolbox/classes/@pz/setQ.m @ 28:01b86b780ba7 database-connection-manager

Remove LTPDARepositoryManager implementation. Java code
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
line wrap: on
line source

% SETQ Set the property 'q'
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% DESCRIPTION: SETQ Set the property 'q' and computes 'ri'
%
% CALL:        obj = obj.setQ(1);
%              obj = setQ(obj, 1);
%
% INPUTS:      obj - is a pz object
%
% VERSION:     $Id: setQ.m,v 1.3 2011/02/18 16:48:54 ingo Exp $
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function ii = setQ(ii, val)

  %%% decide whether we modify the pz-object, or create a new one.
  ii = copy(ii, nargout);

  %%% set 'q'
  ii.q = val;
  %%% Then compute and set ri
  ii.ri = pz.fq2ri(ii.f, ii.q);

end