annotate mt_ensure.m @ 18:062d46712995 tip

Moved mc_global_info1 back to public folder
author samer
date Mon, 02 Apr 2012 21:50:43 +0100
parents be936975f254
children
rev   line source
samer@0 1 % mt_ensure - Ensure that Melody Triange system includes transmats of given size
samer@0 2 %
samer@0 3 % mt_ensure ::
samer@0 4 % mt_system ~'melody triangle system',
samer@0 5 % K:natural ~'desired size of transition matrices'
samer@0 6 % -> action mt_system.
samer@0 7 %
samer@0 8 % If the system already contains transition matrices of size K, then it is
samer@0 9 % returned unchanged. Otherwise, a set of transition matrices is sampled using
samer@0 10 % the parameters supplied to mt_init. If sampling is done, a scatter plot
samer@0 11 % will be generated as a side effect.
samer@0 12
samer@0 13 function Sys=mt_ensure(Sys,K)
samer@0 14 if length(Sys.transmats)<K || isempty(Sys.transmats{K})
samer@0 15 Sys=mt_resample(Sys,K);
samer@0 16 end
samer@0 17 end