SCIRun User Mailing List

Text archives Help


[SCIRUN-USERS] Re: Matlab question


Chronological Thread 
  • From: martinzbornik@post.cz
  • To: Jeroen Stinstra <jeroen@sci.utah.edu>
  • Cc: Ayla Khan <ayla@sci.utah.edu>, scirun-users@sci.utah.edu
  • Subject: [SCIRUN-USERS] Re: Matlab question
  • Date: Thu, 11 Jun 2009 09:50:50 +0200 (CEST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=post.cz; h=In-Reply-To:Received:Date:Cc:To:From:Subject:Mime-Version:Message-Id:Content-Transfer-Encoding:Content-Type:X-Abuse:X-Seznam-User:X-QM-Mark; b=dzZJJOnhCY7iwaBkIhTq1TqZPRRKZIVeqQvAQr+/yyrl/hugutRLs2CEzf6s6yMey K1BL1G7emIZolzYZzu2pbLhQGmZsXXfywI/1IPZEebkP9l45fh69Ve/RAoK94S+UyTN aImcy7N+83yygjQA+BfmT8Xea6ne97mbZ2H9Tf0=

Hi Jeroen,

thank you very much for your answer, I did not know about the examples in 
src/Packages/MatlabInterface/nets, they looks very good!
I will study it dataily.

Cheers,

Martin


------------ Původní zpráva ------------
Od: Jeroen Stinstra <jeroen@sci.utah.edu>
Předmět: Re: [SCIRUN-USERS] Matlab question
Datum: 10.6.2009 22:25:06
----------------------------------------
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