forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

constructor muliy dimnsional array

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Menno



Joined: 16 Jul 2014
Posts: 4

PostPosted: Sat Aug 02, 2014 9:43 am    Post subject: constructor muliy dimnsional array Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Sat Aug 02, 2014 4:08 pm    Post subject: Reply with quote

As far as I know you have to use RESHAPE if you want to do it in one statement.
Back to top
View user's profile Send private message AIM Address
Menno



Joined: 16 Jul 2014
Posts: 4

PostPosted: Mon Aug 04, 2014 9:21 am    Post subject: Reply with quote

Thank you Paul,

I now use RESHAPE, and it works error free.

Menno.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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