|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
Menno
Joined: 16 Jul 2014 Posts: 4
|
Posted: Sat Aug 02, 2014 9:43 am Post subject: constructor muliy dimnsional array |
|
|
Is there a constructor for a more dimensional array?
I did try:
Quote: | kleur(1:2,1:3)=(//1,1/,/13,3/,/50,2//) |
also Quote: | [[1,1],[13,3],[50,2]] | and so on, but I did not get an error message exept
Quote: | 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] |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Sat Aug 02, 2014 4:08 pm Post subject: |
|
|
As far as I know you have to use RESHAPE if you want to do it in one statement. |
|
Back to top |
|
|
Menno
Joined: 16 Jul 2014 Posts: 4
|
Posted: Mon Aug 04, 2014 9:21 am Post subject: |
|
|
Thank you Paul,
I now use RESHAPE, and it works error free.
Menno. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|