Help

Status
Not open for further replies.

scout_54

New Member
Hi guys, I got errors at this point of running the codes. Can anyone help?
M=3
Y=[126;126;126;127;128;133;126;126;126;126;126;126;126;126;126;125;124;124;130;130]


function [h, mu, sigmas, P] = em(M, Y);

[T,D] = size(Y); % T=20, D=1
Tmu=1.0e-03; % Tmu=0.0010
h = ones(T,M)/M;
P = ones(M,1)/M;

for j=1:M,
k = round(rand(1)*T);
mu(j,1) = Y(k,1);
sigmas(j,1) = ones(1,D);
end
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…