MS_SBVAR: correcting printing format of Markov file to allow for floating point

time-shift
Michel Juillard 2011-05-27 22:02:26 +02:00
parent ef38fb951d
commit 574f94eafa
1 changed files with 2 additions and 1 deletions

View File

@ -62,9 +62,10 @@ function ms_write_markov_file(fname,options)
M = zeros(n_states,2);
M(i_state+[-1 1],1) = ones(2,1)/2;
M(i_state,2) = 1;
disp(M)
end
for j_state = 1:n_states
fprintf(fh,'%d ',M(j_state,:));
fprintf(fh,'%f ',M(j_state,:));
fprintf(fh,'\n');
end
fprintf(fh,'\n');