Silverfrost Forums

Welcome to our forums

constructor muliy dimnsional array

2 Aug 2014 8:43 #14385

Is there a constructor for a more dimensional array? I did try:

kleur(1:2,1:3)=(//1,1/,/13,3/,/50,2//)

also

[[1,1],[13,3],[50,2]] and so on, but I did not get an error message exept

,[13,3],[50,2]] and so on, but I did not get an error message exept [quote:a9f4fd1045]Compilation failed

Yes I know, I can use Resize from one dimension to two dimensions, or make an imput construction with the keyboard or with a file.

Menno bouwveld@telfort.nl[/quote]

2 Aug 2014 3:08 #14390

As far as I know you have to use RESHAPE if you want to do it in one statement.

4 Aug 2014 8:21 #14396

Thank you Paul,

I now use RESHAPE, and it works error free.

Menno.

Please login to reply.