Are you on windows? This is most probably an old but unfixed bug, which is only about the display of tuples in the REPL. https://github.com/JuliaLang/julia/issues/7434
Am Mittwoch, 25. Februar 2015 09:59:18 UTC+1 schrieb Ranjan Anantharaman: > > Hey, I'm trying to translate some MATLAB code into Julia, and I ran into > this. > > Consider this code in MATLAB: > > 1. nx=12;ny=nx;nz=nx; x=1.0; > 2. F=repmat(x/19,[nx ny nz 19]); > > To translate line 2 into Julia, I'd have to use repeat(), and so this is > how I translated it. > > F=repeat([x/19], outer = [nx,ny,nx,19]) displays the result I'm looking > for. > > However, size(F) in MATLAB (or Octave) says 12 12 12 19, while size(F) in > Julia says (12,12,0,0). > > Why does this happen? Does Julia not allow its arrays to scale beyond two > dimensions? > >
