https://github.com/anirudhamajumdar/spotless
Revision e27bd32f67c3a8a6bfec605f7f065217f7583dc8 authored by anirudhamajumdar on 05 September 2016, 22:13:06 UTC, committed by GitHub on 05 September 2016, 22:13:06 UTC
2 parent s b601c40 + 4b12841
Raw File
Tip revision: e27bd32f67c3a8a6bfec605f7f065217f7583dc8 authored by anirudhamajumdar on 05 September 2016, 22:13:06 UTC
Merge pull request #1 from spot-toolbox/master
Tip revision: e27bd32
get.m
function a=get(pr,q)
% function a=get(pr,q)
%
% substitute the optimized decision vector of mss program pr
% into mss polynomial q

if nargin<2, error('2 inputs required'); end
pr=struct(pr);
if ~isa(q,'msspoly'), error('2nd input not a mss polynomial'); end
if ~isfield(pr,'x'), error('optimized decision not available'); end

a=subs(q,pr.v,pr.x);
back to top