The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 how to determine dimension of matrix?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
rwilk Posted - 09/02/2004 : 06:59:10 AM
Origin Version (Select Help-->About Origin): 6.1
Operating System: win XP

In lab-talk I want to do following:
import ascii file -> convert to matrix -> do some calculations on a matrix...
but my problem is that everytime file that I am importing is a with a different size.
in a worksheet limit.size command returns only the number of rows but number of collums is still missing...

How can I determine the number of rows and collumns of a matrix/imported worksheet?
maybe there is a nice command/property...
Thanks you in advance for your help
Rafal
2   L A T E S T    R E P L I E S    (Newest First)
rwilk Posted - 09/02/2004 : 07:50:36 AM
Hi Mike Buess,
Thank you a lot- that makes for me everything much easier...
Best regards,
Rafal
Mike Buess Posted - 09/02/2004 : 07:43:53 AM
Hi Rafal,

Easiest way to get dimensions from wks...
nCol = wks.ncols;
get col(1) -e nRow;

From matrix...
matrix -pg DIM nCol nRow;

Mike Buess
Origin WebRing Member

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000