SCIRun User Mailing List

Text archives Help


[SCIRUN-USERS] Re: Matlab question


Chronological Thread 
  • From: Jeroen Stinstra <jeroen@sci.utah.edu>
  • To: martinzbornik@post.cz
  • Cc: Ayla Khan <ayla@sci.utah.edu>, scirun-users@sci.utah.edu
  • Subject: [SCIRUN-USERS] Re: Matlab question
  • Date: Wed, 10 Jun 2009 14:02:56 -0600

Hi Martin,

On Jun 10, 2009, at 8:23 AM, martinzbornik@post.cz wrote:

Hi Ayla,

thank you for your reply and help, I read this links at scirun web yet. We need detailed description, how the interface scirun-matlab really works. How to transfer values in variables between matlab- scirun, how matlab works with the ports etc.

Here is a short description:
SCIRun exports its data types to Matlab by converting the datastructure of the dataflow objects into a matlab readable structure. Hence a SCIRun matrix becomes a 2D matlab matrix, a field becomes a structured matlab matrix in which each field encodes certain properties of the dataflow object.

The interface works by taking the input objects, (nrrds, fields, matrices, and bundles) converting them to matlab files, then matlab reads them in and code is executed and then the matlab variables are written out and then converted back into SCIRun objects.


For example - each component measures time, how long works. Is it possible to transfer this value from scirun to matlab please?

No we do not have support for that.

Could you send me some *srn file, which one includes interface matlab - scirun please?


Look into the example nets:

in the source distribution:

src/Packages/MatlabInterface/nets

in the binary distribution:

example_nets/MatlabInterface (OSX)
C:\Program Files\SCIRun 4.x\src\Packages\MatlabInterface\nets (Windows)

cheers,

Jeroen


Best regards!

Martin




------------ Původní zpráva ------------
Od: Ayla Khan <ayla@sci.utah.edu>
Předmět: Re: [SCIRUN-USERS] Matlab question
Datum: 04.6.2009 21:51:50
----------------------------------------
Hi Martin,

Can you describe the problem you're having in more detail? Also, wehave some documentation for the ExportFieldsToMatlab module on our
wiki
(http://software.sci.utah.edu/SCIRunDocs/index.php/CIBC:Documentation:SCIRun:Reference:MatlabInterface:ExportFieldsToMatlab

) and the documentation for ImportFieldsFromMatlab describes which
SCIRun Field types are compatible with which Matlab matrix types
(http://software.sci.utah.edu/SCIRunDocs/index.php/CIBC:Documentation:SCIRun:Reference:MatlabInterface:ImportFieldsFromMatlab

).

Cheers,

Ayla

On Jun 3, 2009, at 5:13 AM, martinzbornik@post.cz wrote:

> Hi,
>
> I would like ask you, if you could help me please? I imported via > ImportFieldsFromMatlab *.mat file mesh - including faces and
> vertices. Now I am not able to find out, how to do way back - it
> means, how to use ExportFieldToMatlab component. I did not found the
> advice in your documentation, in the attachment you will find
> simple .srn file.
>
> Could you send me they stages, how to use Export components please?
>
> Best regards!
>
> Martin<cviceni_matlab.srn>


-----------------------------
Ayla Khan
(801) 585-0333
ayla@sci.utah.edu











Archive powered by MHonArc 2.6.16.

Top of page