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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 how to determine dimension of matrix?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rwilk

Germany
Posts

Posted - 09/02/2004 :  06:59:10 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 09/02/2004 :  07:43:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

rwilk

Germany
Posts

Posted - 09/02/2004 :  07:50:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike Buess,
Thank you a lot- that makes for me everything much easier...
Best regards,
Rafal
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000