# ERROR: LoadError: syntax: missing separator in array expression

**URL:** <https://discourse.julialang.org/t/error-loaderror-syntax-missing-separator-in-array-expression/1616>\
**Category:** General Usage\
**Tags:** matlab\
**Created:** [January 20, 2017, 4:31pm UTC](https://discourse.julialang.org/t/error-loaderror-syntax-missing-separator-in-array-expression/1616 "2017-01-20T16:31:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@andrea](https://discourse.julialang.org/u/andrea)\
**Post date:** [January 20, 2017, 4:31pm UTC](https://discourse.julialang.org/t/error-loaderror-syntax-missing-separator-in-array-expression/1616/1 "2017-01-20T16:31:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [January 20, 2017, 4:41pm UTC](https://discourse.julialang.org/t/error-loaderror-syntax-missing-separator-in-array-expression/1616/2 "2017-01-20T16:41:22Z")

</div>

> [@andrea](#):
>
> `fprintf(f_initial,"#g ",x[:,1)]`

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

---

<div class="post-metadata">

**Author:** ![andrea](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@andrea](https://discourse.julialang.org/u/andrea)\
**Post date:** [January 21, 2017, 8:39pm UTC](https://discourse.julialang.org/t/error-loaderror-syntax-missing-separator-in-array-expression/1616/3 "2017-01-21T20:39:23Z")

</div>

Thanks a lot, I’m really stupid…
