ERROR: LoadError: syntax: missing separator in array expression

matlab

#1

I’m pretty new in Julia: I’ve to integrate some MatLab code…I found an automatic ttranslator from MatLab to Julia. after the translation I got that error…on this line of code…
fprintf(f_initial,"#g ",x[:,1)]

where x was calculated by calling a function
x = create_sample(p, dirichlet_initial, dirichlet_transition,num_transition_samples)
The error seems related to some wrong syntax
ERROR: LoadError: syntax: missing separator in array expression
Is there anything wrong in the syntax?
Thanks a lot


#2

Your last two characters there are transposed. x[:, 1]).


#3

Thanks a lot, I’m really stupid…