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
 matlab imports
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

scalpa

France
Posts

Posted - 03/26/2024 :  10:14:05 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. originpro 2024

Hello,
Importing a Matlab file with its hierarchical structure, I get a worksheet with a column in which each row is a link to a worksheet. when I click on this link, it creates and fill a new worksheet as it should. How can I program the same thing with LAbtalk ? ie open all or a fraction of these links?

thanks a lot !

Psilberz

minimax

356 Posts

Posted - 04/01/2024 :  03:11:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Psilberz,

There is probably no Labtalk access on it.

Have you tried the Matlab Connector? (Data menu - Connect to File - MATLAB)

It provides a different way to import and arrange the data and does not require clicking on worksheet cells to show the data.
Go to Top of Page

scalpa

France
Posts

Posted - 04/08/2024 :  10:18:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thanks minimax,

that's what I suspected.
you're right, connecting to the matlab file is the way to go. now, I have 150 files under one tab (one sheet) in the matrix book (and several similar sheets). I can see them with the slider. However, I can't find the way to get them individualy. how do I get the matrix nb i in this matrix sheet ?

sorry for the basic question and thanks in advance,

best,
Psilberz
Go to Top of Page

minimax

356 Posts

Posted - 04/09/2024 :  01:39:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Psilberz,

What does "nb i" mean? in your "matrix nb i in this matrix sheet".

Is it some abbreviation?

You can click the D icon on the top right corner, which will show each matrix object index on the popup menu, clicking it will activate the corresponding object.

Go to Top of Page

scalpa

France
Posts

Posted - 04/09/2024 :  07:01:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello minimax,
I'm sorry I was not clear. the structure of my file is such that I have a MatrixBook that contains MatrixSheets. Each Sheet is structured in such a way that it is a stack of matrices (or images). So each sheet is acually 150 images that I can nagivate with the slider. my question is : what is the right LabTalk syntax to select say image 78 of MatrixSheet3 of MatrixBook1 ?
thanks again for your help
Best,
P
Go to Top of Page

jasmine_chan

China
Posts

Posted - 04/09/2024 :  10:23:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
window -a MatrixBook1 ; // Activate MatrixBook1 window by name
page.active$ = MatrixSheet3; // Activate a matrixsheet by name
wks.active = 78; // Activate the 78th matrix object
Go to Top of Page

scalpa

France
Posts

Posted - 04/10/2024 :  06:42:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
that's great !
Thank you so much,

best

P
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