Documentation:Reference:Matlab - MdsWiki
Navigation
Personal tools

From MdsWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 19:44, 28 July 2008 (edit)
Jacob.chancery (Talk | contribs)
(Example Usage)
← Previous diff
Revision as of 19:44, 28 July 2008 (edit)
Jacob.chancery (Talk | contribs)
(Setting Matlab Search Path)
Next diff →
Line 4: Line 4:
__NOTOC__ __NOTOC__
-== Setting Matlab Search Path ==+== Setting the Matlab Search Path ==
Once you have installed the MDSplus software on your desktop computer you can read and write data to and from trees using Matlab. The m-file functions for MDSplus operations will be in your MDSplus directory, usually in C:\Program Files\MDSplus\Matlab for a standard Windows installation. You should add this folder to your Matlab search path using the Set Path... option from the File menu. Once you have installed the MDSplus software on your desktop computer you can read and write data to and from trees using Matlab. The m-file functions for MDSplus operations will be in your MDSplus directory, usually in C:\Program Files\MDSplus\Matlab for a standard Windows installation. You should add this folder to your Matlab search path using the Set Path... option from the File menu.

Revision as of 19:44, 28 July 2008


Setting the Matlab Search Path

Once you have installed the MDSplus software on your desktop computer you can read and write data to and from trees using Matlab. The m-file functions for MDSplus operations will be in your MDSplus directory, usually in C:\Program Files\MDSplus\Matlab for a standard Windows installation. You should add this folder to your Matlab search path using the Set Path... option from the File menu.

Example Usage

If there is an MDSplus server on your Local Area Network at address 123.456.7.89 and a tree on the server named mytree then you connect and read data like this:

 mdsconnect('123.456.7.89')
 mdsopen('mytree',42)
 data=mdsvalue('\data_node')
 mdsclose
 mdsdisconnect