Polsin / addi

Automatically exported from code.google.com/p/addi
0 stars 0 forks source link

Error creating multi-dimensional array #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

test(:,:,1)=[1,2;3,4]

What is the expected output? 
MATLAB gives 

test =
     1     2
     3     4

What do you see instead?
Error: SubAssign: number of arguments <3 or>4

What version of the product are you using? On what operating system?

Addi 1.8
Android 2.6.32.9

Original issue reported on code.google.com by michael....@googlemail.com on 8 Oct 2011 at 3:19

GoogleCodeExporter commented 9 years ago

Original comment by corbi...@gmail.com on 6 Nov 2011 at 3:43

GoogleCodeExporter commented 9 years ago
This is non-ideal, but you can just do test = [1 2; 3 4] as a simplier way to 
write this.  What you tried should work though.

Original comment by corbi...@gmail.com on 11 Nov 2011 at 12:49

GoogleCodeExporter commented 9 years ago
A fair comment.  In which case I modify my bug report to.

test(:,:,2)=[1,2;3,4]

Which should give

test(:,:,1) =

     0     0
     0     0

test(:,:,2) =

     1     2
     3     4

but actually gives 
What do you see instead?
Error: SubAssign: number of arguments <3 or>4

Cheers,
Mike

Original comment by walking....@googlemail.com on 21 Nov 2011 at 4:29

GoogleCodeExporter commented 9 years ago
Can you try going to settings/preferences inside addi and enabling the 
"experimental interpreter"?  This should be solved via that.  That will be the 
default behavior in the future.

Original comment by corbi...@gmail.com on 16 Apr 2012 at 4:46