Hi, I am generating two functions and the outcome of the first function will be use as input values of the second function.
Like Matlab's case of [x,y,z] =test_function(input), I used Julia's tuple function to generate [x,y,z] and it worked well. function test_function(input) x=rand(20,5); y=rand(30,50); z=rand(5,100); ALL=tuple(x,y,z); return ALL end I sliced the output of ALL with [[ ]] and save as xx,yy,zz. ALL= test_function(best) xx=ALL[[1]]; yy=ALL[[2]]; zz=ALL[[3]]; But I found the size of original output (say x) and sliced (say xx) are not identical so I can not transfer the values into the second function. size(x) (20,5) size(xx) `size` has no method matching size(::(Array{Float64,2},)) while loading In[1], in expression starting on line 12 Q) How can I convert the size of xx into size of x so that I can run my second function like following? function test_2(x,y,z) smile!! end Thank you for your time. Jase