Sorry ti all,

I’ve already posted a question for a real stupid error, but you…at the beginning…

Now I have another question…I’ve this simple code

function bn_dirichlet_prior(N)

n = length(N)

alpha = cell(n, 1);

for i = 1:n

[r, q] = size(N{i})

alpha{i} = ones(r, q)

end

return alpha

end

the error is

ERROR: LoadError: syntax: invalid assignment location

in expression starting on line 10

but the file has only 9 lines…!!!

This code was translated from MatLab

Thanks a lot