Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial import

git-svn-id: http://matlab-ruby.rubyforge.org/svn/trunk@1 a4cadce9-4ec9-48b2-9120-f971c031a6cc
  • Loading branch information...
commit 621a445fd623f8540ee56271bd06fc3f53721f95 0 parents
poogle authored
Showing with 12,898 additions and 0 deletions.
  1. +5 −0 History.txt
  2. +19 −0 LICENSE.txt
  3. +19 −0 Manifest.txt
  4. +88 −0 README.txt
  5. +18 −0 Rakefile
  6. +141 −0 doc/classes/Array.html
  7. +24 −0 doc/classes/Array.src/M000001.html
  8. +140 −0 doc/classes/FalseClass.html
  9. +18 −0 doc/classes/FalseClass.src/M000002.html
  10. +140 −0 doc/classes/Float.html
  11. +18 −0 doc/classes/Float.src/M000004.html
  12. +132 −0 doc/classes/Matlab.html
  13. +178 −0 doc/classes/Matlab/CellMatrix.html
  14. +29 −0 doc/classes/Matlab/CellMatrix.src/M000027.html
  15. +32 −0 doc/classes/Matlab/CellMatrix.src/M000028.html
  16. +111 −0 doc/classes/Matlab/Driver.html
  17. +111 −0 doc/classes/Matlab/Driver/Native.html
  18. +197 −0 doc/classes/Matlab/Driver/Native/Driver.html
  19. +18 −0 doc/classes/Matlab/Driver/Native/Driver.src/M000009.html
  20. +18 −0 doc/classes/Matlab/Driver/Native/Driver.src/M000010.html
  21. +18 −0 doc/classes/Matlab/Driver/Native/Driver.src/M000011.html
  22. +18 −0 doc/classes/Matlab/Driver/Native/Driver.src/M000012.html
  23. +18 −0 doc/classes/Matlab/Driver/Native/Driver.src/M000013.html
  24. +245 −0 doc/classes/Matlab/Engine.html
  25. +20 −0 doc/classes/Matlab/Engine.src/M000017.html
  26. +18 −0 doc/classes/Matlab/Engine.src/M000018.html
  27. +24 −0 doc/classes/Matlab/Engine.src/M000019.html
  28. +18 −0 doc/classes/Matlab/Engine.src/M000020.html
  29. +282 −0 doc/classes/Matlab/Matrix.html
  30. +30 −0 doc/classes/Matlab/Matrix.src/M000021.html
  31. +32 −0 doc/classes/Matlab/Matrix.src/M000022.html
  32. +19 −0 doc/classes/Matlab/Matrix.src/M000023.html
  33. +18 −0 doc/classes/Matlab/Matrix.src/M000024.html
  34. +18 −0 doc/classes/Matlab/Matrix.src/M000025.html
  35. +18 −0 doc/classes/Matlab/Matrix.src/M000026.html
  36. +218 −0 doc/classes/Matlab/StructMatrix.html
  37. +32 −0 doc/classes/Matlab/StructMatrix.src/M000014.html
  38. +35 −0 doc/classes/Matlab/StructMatrix.src/M000015.html
  39. +26 −0 doc/classes/Matlab/StructMatrix.src/M000016.html
  40. +133 −0 doc/classes/Matlab/Version.html
  41. +140 −0 doc/classes/NilClass.html
  42. +18 −0 doc/classes/NilClass.src/M000005.html
  43. +140 −0 doc/classes/Numeric.html
  44. +18 −0 doc/classes/Numeric.src/M000003.html
  45. +107 −0 doc/classes/SWIG.html
  46. +144 −0 doc/classes/SWIG/TYPE_p_mxArray_tag.html
  47. +33 −0 doc/classes/SWIG/TYPE_p_mxArray_tag.src/M000008.html
  48. +140 −0 doc/classes/String.html
  49. +18 −0 doc/classes/String.src/M000007.html
  50. +140 −0 doc/classes/TrueClass.html
  51. +18 −0 doc/classes/TrueClass.src/M000006.html
  52. +1 −0  doc/created.rid
  53. +115 −0 doc/files/History_txt.html
  54. +129 −0 doc/files/LICENSE_txt.html
  55. +225 −0 doc/files/README_txt.html
  56. +109 −0 doc/files/lib/matlab/driver/native/conversions_rb.html
  57. +109 −0 doc/files/lib/matlab/driver/native/driver_rb.html
  58. +101 −0 doc/files/lib/matlab/engine_rb.html
  59. +101 −0 doc/files/lib/matlab/matrix_rb.html
  60. +101 −0 doc/files/lib/matlab/version_rb.html
  61. +137 −0 doc/files/lib/matlab_rb.html
  62. +44 −0 doc/fr_class_index.html
  63. +35 −0 doc/fr_file_index.html
  64. +54 −0 doc/fr_method_index.html
  65. +24 −0 doc/index.html
  66. +208 −0 doc/rdoc-style.css
  67. +4 −0 ext/matlab_api/MANIFEST
  68. +15 −0 ext/matlab_api/extconf.rb
  69. +15 −0 ext/matlab_api/matlab_api.i
  70. +5,802 −0 ext/matlab_api/matlab_api_wrap.c
  71. +22 −0 lib/matlab.rb
  72. +200 −0 lib/matlab/driver/native/conversions.rb
  73. +26 −0 lib/matlab/driver/native/driver.rb
  74. +81 −0 lib/matlab/engine.rb
  75. +84 −0 lib/matlab/matrix.rb
  76. +14 −0 lib/matlab/version.rb
  77. +1,333 −0 setup.rb
  78. +79 −0 test/driver/native/test_conversions.rb
  79. +41 −0 test/driver/native/test_driver.rb
  80. +77 −0 test/test_engine.rb
5 History.txt
@@ -0,0 +1,5 @@
+== 1.0.0 / 2007-04-06
+
+* 1 major enhancement
+ * Birthday!
+
19 LICENSE.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2007 Jonathan Younger <jonathan.younger@lipomics.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
19 Manifest.txt
@@ -0,0 +1,19 @@
+History.txt
+LICENSE.txt
+Manifest.txt
+README.txt
+Rakefile
+ext/matlab_api/MANIFEST
+ext/matlab_api/extconf.rb
+ext/matlab_api/matlab_api.i
+ext/matlab_api/matlab_api_wrap.c
+lib/matlab.rb
+lib/matlab/driver/native/conversions.rb
+lib/matlab/driver/native/driver.rb
+lib/matlab/engine.rb
+lib/matlab/matrix.rb
+lib/matlab/version.rb
+setup.rb
+test/driver/native/test_conversions.rb
+test/driver/native/test_driver.rb
+test/test_engine.rb
88 README.txt
@@ -0,0 +1,88 @@
+matlab-ruby
+ http://matlab-ruby.rubyforge.org/
+ jonathan.younger@lipomics.com
+ A big thank you to Lipomics Technologies, Inc. http://www.lipomics.com for sponsoring this project.
+
+== DESCRIPTION:
+
+A Ruby interface to the MATLAB interpreted language.
+
+== FEATURES:
+
+* Data type conversion between MATLAB and Ruby String, Boolean, Nil and Numeric values
+* Matrix, CellMatrix and StructMatrix helper classes for working with MATLAB matrices
+
+== USAGE:
+
+ require 'matlab'
+
+ engine = Matlab::Engine.new
+ engine.x = 123.456
+ engine.y = 789.101112
+ engine.eval_string "z = x * y"
+ engine.z
+
+ matrix = Matlab::Matrix.new(20, 400)
+ 20.times { |m| 400.times { |n| matrix[m, n] = rand } }
+ engine.m = matrix
+
+ engine.eval_string "save '/tmp/20_x_400_matrix"
+ engine.close
+
+== REQUIREMENTS:
+
+* MATLAB
+* GCC or some other compiler to build the included extension
+* SWIG (If you want to recompile the SWIG wrapper)
+* Mocha (For testing only)
+
+== INSTALL:
+
+Simply do the following, after installing MATLAB:
+
+ * ruby setup.rb config
+ * ruby setup.rb setup
+ * ruby setup.rb install
+
+Alternatively, you can download and install the RubyGem package for
+matlab-ruby (you must have RubyGems and MATLAB installed, first):
+
+ * gem install matlab-ruby
+
+If you have MATLAB installed in a non-standard location, you can specify the location of the include and lib files by doing:
+
+ * gem install matlab-ruby -- --with-matlab-include=/usr/local/matlab/extern/include \
+ --with-matlab-lib=/usr/local/matlab/bin/glnx86
+
+Also, the gem ships with the C source-code pre-built, so
+you do not need to have SWIG installed. However, if you have SWIG installed
+and you want to generate the C file yourself, you can specify the
+<code>--with-swig</code> option.
+
+== LEGAL
+
+MATLAB is a trademark of The MathWorks, Inc.
+
+== LICENSE
+
+matlab-ruby is licensed under the MIT License.
+
+Copyright (c) 2007 Jonathan Younger <jonathan.younger@lipomics.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
18 Rakefile
@@ -0,0 +1,18 @@
+# -*- ruby -*-
+
+require 'rubygems'
+require 'hoe'
+require './lib/matlab/version.rb'
+
+Hoe.new('matlab-ruby', Matlab::Version::STRING) do |p|
+ p.rubyforge_name = 'matlab-ruby'
+ p.author = ["Jonathan Younger"]
+ p.email = ["jonathan.younger@lipomics.com"]
+ p.summary = "A Ruby interface to the Matlab interpreted language."
+ p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
+ p.url = "http://matlab-ruby.rubyforge.org/"
+ p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
+ p.spec_extras["extensions"] = "ext/matlab_api/extconf.rb"
+end
+
+# vim: syntax=Ruby
141 doc/classes/Array.html
@@ -0,0 +1,141 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: Array</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">Array</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/lib/matlab/driver/native/conversions_rb.html">
+ lib/matlab/driver/native/conversions.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000001">to_cell_matrix</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000001" class="method-detail">
+ <a name="M000001"></a>
+
+ <div class="method-heading">
+ <a href="Array.src/M000001.html" target="Code" class="method-signature"
+ onclick="popupCode('Array.src/M000001.html');return false;">
+ <span class="method-name">to_cell_matrix</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Flattens and converts the array to a 1 Dimensional <a
+href="Matlab/CellMatrix.html">Matlab::CellMatrix</a>
+</p>
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
24 doc/classes/Array.src/M000001.html
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>to_cell_matrix (Array)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/driver/native/conversions.rb, line 48</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_cell_matrix</span>
+ <span class="ruby-identifier">values</span> = <span class="ruby-identifier">flatten</span>
+ <span class="ruby-identifier">cell_matrix</span> = <span class="ruby-constant">Matlab</span><span class="ruby-operator">::</span><span class="ruby-constant">CellMatrix</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">values</span>.<span class="ruby-identifier">size</span>, <span class="ruby-value">1</span>)
+
+ <span class="ruby-identifier">values</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span>, <span class="ruby-identifier">index</span><span class="ruby-operator">|</span>
+ <span class="ruby-identifier">cell_matrix</span>[<span class="ruby-identifier">index</span>, <span class="ruby-value">0</span>] = <span class="ruby-identifier">value</span>
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-identifier">cell_matrix</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
140 doc/classes/FalseClass.html
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: FalseClass</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">FalseClass</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/lib/matlab/driver/native/conversions_rb.html">
+ lib/matlab/driver/native/conversions.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000002">to_matlab</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000002" class="method-detail">
+ <a name="M000002"></a>
+
+ <div class="method-heading">
+ <a href="FalseClass.src/M000002.html" target="Code" class="method-signature"
+ onclick="popupCode('FalseClass.src/M000002.html');return false;">
+ <span class="method-name">to_matlab</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Converts false to a MATLAB logical scalar
+</p>
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
18 doc/classes/FalseClass.src/M000002.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>to_matlab (FalseClass)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/driver/native/conversions.rb, line 20</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_matlab</span>
+ <span class="ruby-constant">Matlab</span><span class="ruby-operator">::</span><span class="ruby-constant">Driver</span><span class="ruby-operator">::</span><span class="ruby-constant">Native</span><span class="ruby-operator">::</span><span class="ruby-constant">API</span>.<span class="ruby-identifier">mxCreateLogicalScalar</span>(<span class="ruby-keyword kw">self</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
140 doc/classes/Float.html
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: Float</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">Float</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/lib/matlab/driver/native/conversions_rb.html">
+ lib/matlab/driver/native/conversions.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000004">to_ruby</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000004" class="method-detail">
+ <a name="M000004"></a>
+
+ <div class="method-heading">
+ <a href="Float.src/M000004.html" target="Code" class="method-signature"
+ onclick="popupCode('Float.src/M000004.html');return false;">
+ <span class="method-name">to_ruby</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Converts the value to nil if it is a MATLAB NaN
+</p>
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
18 doc/classes/Float.src/M000004.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>to_ruby (Float)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/driver/native/conversions.rb, line 34</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ruby</span>
+ <span class="ruby-identifier">to_s</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>.<span class="ruby-identifier">to_matlab</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-value">? </span><span class="ruby-keyword kw">nil</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
132 doc/classes/Matlab.html
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Module: Matlab</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">Matlab</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/lib/matlab/driver/native/conversions_rb.html">
+ lib/matlab/driver/native/conversions.rb
+ </a>
+ <br />
+ <a href="../files/lib/matlab/driver/native/driver_rb.html">
+ lib/matlab/driver/native/driver.rb
+ </a>
+ <br />
+ <a href="../files/lib/matlab/engine_rb.html">
+ lib/matlab/engine.rb
+ </a>
+ <br />
+ <a href="../files/lib/matlab/matrix_rb.html">
+ lib/matlab/matrix.rb
+ </a>
+ <br />
+ <a href="../files/lib/matlab/version_rb.html">
+ lib/matlab/version.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+ <div id="class-list">
+ <h3 class="section-bar">Classes and Modules</h3>
+
+ Module <a href="Matlab/Driver.html" class="link">Matlab::Driver</a><br />
+Module <a href="Matlab/Version.html" class="link">Matlab::Version</a><br />
+Class <a href="Matlab/CellMatrix.html" class="link">Matlab::CellMatrix</a><br />
+Class <a href="Matlab/Engine.html" class="link">Matlab::Engine</a><br />
+Class <a href="Matlab/Matrix.html" class="link">Matlab::Matrix</a><br />
+Class <a href="Matlab/StructMatrix.html" class="link">Matlab::StructMatrix</a><br />
+
+ </div>
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
178 doc/classes/Matlab/CellMatrix.html
@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: Matlab::CellMatrix</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">Matlab::CellMatrix</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/matlab/driver/native/conversions_rb.html">
+ lib/matlab/driver/native/conversions.rb
+ </a>
+ <br />
+ <a href="../../files/lib/matlab/matrix_rb.html">
+ lib/matlab/matrix.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+ <div id="description">
+ <p>
+The <a href="CellMatrix.html">CellMatrix</a> class is used for storing
+values that are sent to or received from MATLAB cell matrices. Usage:
+</p>
+<pre>
+ require 'matlab'
+
+ cell_matrix = Matlab::CellMatrix.new(20, 400)
+ 20.times { |m| 400.times { |n| cell_matrix[m, n] = rand.to_s } }
+</pre>
+
+ </div>
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000028">from_matlab</a>&nbsp;&nbsp;
+ <a href="#M000027">to_matlab</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Class methods</h3>
+
+ <div id="method-M000028" class="method-detail">
+ <a name="M000028"></a>
+
+ <div class="method-heading">
+ <a href="CellMatrix.src/M000028.html" target="Code" class="method-signature"
+ onclick="popupCode('CellMatrix.src/M000028.html');return false;">
+ <span class="method-name">from_matlab</span><span class="method-args">(matrix)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Creates a <a href="CellMatrix.html">Matlab::CellMatrix</a> from a MATLAB
+cell matrix
+</p>
+ </div>
+ </div>
+
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000027" class="method-detail">
+ <a name="M000027"></a>
+
+ <div class="method-heading">
+ <a href="CellMatrix.src/M000027.html" target="Code" class="method-signature"
+ onclick="popupCode('CellMatrix.src/M000027.html');return false;">
+ <span class="method-name">to_matlab</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Converts the matrix into a MATLAB cell matrix
+</p>
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
29 doc/classes/Matlab/CellMatrix.src/M000027.html
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>to_matlab (Matlab::CellMatrix)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/driver/native/conversions.rb, line 100</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_matlab</span>
+ <span class="ruby-identifier">matrix</span> = <span class="ruby-constant">Matlab</span><span class="ruby-operator">::</span><span class="ruby-constant">Driver</span><span class="ruby-operator">::</span><span class="ruby-constant">Native</span><span class="ruby-operator">::</span><span class="ruby-constant">API</span>.<span class="ruby-identifier">mxCreateCellMatrix</span>(<span class="ruby-identifier">m</span>, <span class="ruby-identifier">n</span>)
+
+ <span class="ruby-identifier">index</span> = <span class="ruby-value">0</span>
+ <span class="ruby-identifier">n</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">column_index</span><span class="ruby-operator">|</span>
+ <span class="ruby-identifier">m</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">row_index</span><span class="ruby-operator">|</span>
+ <span class="ruby-identifier">value</span> = (<span class="ruby-ivar">@cells</span>[<span class="ruby-identifier">row_index</span>][<span class="ruby-identifier">column_index</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-constant">Matlab</span><span class="ruby-operator">::</span><span class="ruby-constant">Driver</span><span class="ruby-operator">::</span><span class="ruby-constant">Native</span><span class="ruby-operator">::</span><span class="ruby-constant">API</span>.<span class="ruby-identifier">mxCreateDoubleScalar</span>(<span class="ruby-keyword kw">nil</span>.<span class="ruby-identifier">to_matlab</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@cells</span>[<span class="ruby-identifier">row_index</span>][<span class="ruby-identifier">column_index</span>].<span class="ruby-identifier">to_matlab</span>)
+ <span class="ruby-constant">Matlab</span><span class="ruby-operator">::</span><span class="ruby-constant">Driver</span><span class="ruby-operator">::</span><span class="ruby-constant">Native</span><span class="ruby-operator">::</span><span class="ruby-constant">API</span>.<span class="ruby-identifier">mxSetCell</span>(<span class="ruby-identifier">matrix</span>, <span class="ruby-identifier">index</span>, <span class="ruby-identifier">value</span>)
+ <span class="ruby-identifier">index</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span>
+
+ <span class="ruby-identifier">matrix</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
32 doc/classes/Matlab/CellMatrix.src/M000028.html
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>from_matlab (Matlab::CellMatrix)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/driver/native/conversions.rb, line 116</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">from_matlab</span>(<span class="ruby-identifier">matrix</span>)
+ <span class="ruby-identifier">m</span> = <span class="ruby-constant">Matlab</span><span class="ruby-operator">::</span><span class="ruby-constant">Driver</span><span class="ruby-operator">::</span><span class="ruby-constant">Native</span><span class="ruby-operator">::</span><span class="ruby-constant">API</span>.<span class="ruby-identifier">mxGetM</span>(<span class="ruby-identifier">matrix</span>)
+ <span class="ruby-identifier">n</span> = <span class="ruby-constant">Matlab</span><span class="ruby-operator">::</span><span class="ruby-constant">Driver</span><span class="ruby-operator">::</span><span class="ruby-constant">Native</span><span class="ruby-operator">::</span><span class="ruby-constant">API</span>.<span class="ruby-identifier">mxGetN</span>(<span class="ruby-identifier">matrix</span>)
+
+ <span class="ruby-identifier">cell_matrix</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">m</span>, <span class="ruby-identifier">n</span>)
+
+ <span class="ruby-identifier">index</span> = <span class="ruby-value">0</span>
+ <span class="ruby-identifier">n</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">column_index</span><span class="ruby-operator">|</span>
+ <span class="ruby-identifier">m</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">row_index</span><span class="ruby-operator">|</span>
+ <span class="ruby-identifier">value</span> = <span class="ruby-constant">Matlab</span><span class="ruby-operator">::</span><span class="ruby-constant">Driver</span><span class="ruby-operator">::</span><span class="ruby-constant">Native</span><span class="ruby-operator">::</span><span class="ruby-constant">API</span>.<span class="ruby-identifier">mxGetCell</span>(<span class="ruby-identifier">matrix</span>, <span class="ruby-identifier">index</span>).<span class="ruby-identifier">to_ruby</span>
+ <span class="ruby-identifier">cell_matrix</span>[<span class="ruby-identifier">row_index</span>, <span class="ruby-identifier">column_index</span>] = (<span class="ruby-identifier">value</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>.<span class="ruby-identifier">to_matlab</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-value">? </span><span class="ruby-keyword kw">nil</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">value</span>)
+ <span class="ruby-identifier">index</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span>
+
+ <span class="ruby-identifier">cell_matrix</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
111 doc/classes/Matlab/Driver.html
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Module: Matlab::Driver</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">Matlab::Driver</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/matlab/driver/native/driver_rb.html">
+ lib/matlab/driver/native/driver.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+ <div id="class-list">
+ <h3 class="section-bar">Classes and Modules</h3>
+
+ Module <a href="Driver/Native.html" class="link">Matlab::Driver::Native</a><br />
+
+ </div>
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
111 doc/classes/Matlab/Driver/Native.html
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Module: Matlab::Driver::Native</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">Matlab::Driver::Native</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../../files/lib/matlab/driver/native/driver_rb.html">
+ lib/matlab/driver/native/driver.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+ <div id="class-list">
+ <h3 class="section-bar">Classes and Modules</h3>
+
+ Class <a href="Native/Driver.html" class="link">Matlab::Driver::Native::Driver</a><br />
+
+ </div>
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
197 doc/classes/Matlab/Driver/Native/Driver.html
@@ -0,0 +1,197 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: Matlab::Driver::Native::Driver</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">Matlab::Driver::Native::Driver</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../../../files/lib/matlab/driver/native/driver_rb.html">
+ lib/matlab/driver/native/driver.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000010">close</a>&nbsp;&nbsp;
+ <a href="#M000011">eval_string</a>&nbsp;&nbsp;
+ <a href="#M000012">get_variable</a>&nbsp;&nbsp;
+ <a href="#M000009">open</a>&nbsp;&nbsp;
+ <a href="#M000013">put_variable</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000010" class="method-detail">
+ <a name="M000010"></a>
+
+ <div class="method-heading">
+ <a href="Driver.src/M000010.html" target="Code" class="method-signature"
+ onclick="popupCode('Driver.src/M000010.html');return false;">
+ <span class="method-name">close</span><span class="method-args">(engine)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000011" class="method-detail">
+ <a name="M000011"></a>
+
+ <div class="method-heading">
+ <a href="Driver.src/M000011.html" target="Code" class="method-signature"
+ onclick="popupCode('Driver.src/M000011.html');return false;">
+ <span class="method-name">eval_string</span><span class="method-args">(engine, string)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000012" class="method-detail">
+ <a name="M000012"></a>
+
+ <div class="method-heading">
+ <a href="Driver.src/M000012.html" target="Code" class="method-signature"
+ onclick="popupCode('Driver.src/M000012.html');return false;">
+ <span class="method-name">get_variable</span><span class="method-args">(engine, name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000009" class="method-detail">
+ <a name="M000009"></a>
+
+ <div class="method-heading">
+ <a href="Driver.src/M000009.html" target="Code" class="method-signature"
+ onclick="popupCode('Driver.src/M000009.html');return false;">
+ <span class="method-name">open</span><span class="method-args">(command)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000013" class="method-detail">
+ <a name="M000013"></a>
+
+ <div class="method-heading">
+ <a href="Driver.src/M000013.html" target="Code" class="method-signature"
+ onclick="popupCode('Driver.src/M000013.html');return false;">
+ <span class="method-name">put_variable</span><span class="method-args">(engine, name, value)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
18 doc/classes/Matlab/Driver/Native/Driver.src/M000009.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>open (Matlab::Driver::Native::Driver)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/driver/native/driver.rb, line 6</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span>(<span class="ruby-identifier">command</span>)
+ <span class="ruby-constant">API</span>.<span class="ruby-identifier">engOpen</span>(<span class="ruby-identifier">command</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Matlab/Driver/Native/Driver.src/M000010.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>close (Matlab::Driver::Native::Driver)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/driver/native/driver.rb, line 10</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>(<span class="ruby-identifier">engine</span>)
+ <span class="ruby-constant">API</span>.<span class="ruby-identifier">engClose</span>(<span class="ruby-identifier">engine</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Matlab/Driver/Native/Driver.src/M000011.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>eval_string (Matlab::Driver::Native::Driver)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/driver/native/driver.rb, line 14</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eval_string</span>(<span class="ruby-identifier">engine</span>, <span class="ruby-identifier">string</span>)
+ <span class="ruby-constant">API</span>.<span class="ruby-identifier">engEvalString</span>(<span class="ruby-identifier">engine</span>, <span class="ruby-identifier">string</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Matlab/Driver/Native/Driver.src/M000012.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>get_variable (Matlab::Driver::Native::Driver)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/driver/native/driver.rb, line 18</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_variable</span>(<span class="ruby-identifier">engine</span>, <span class="ruby-identifier">name</span>)
+ <span class="ruby-constant">API</span>.<span class="ruby-identifier">engGetVariable</span>(<span class="ruby-identifier">engine</span>, <span class="ruby-identifier">name</span>).<span class="ruby-identifier">to_ruby</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Matlab/Driver/Native/Driver.src/M000013.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>put_variable (Matlab::Driver::Native::Driver)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/driver/native/driver.rb, line 22</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">put_variable</span>(<span class="ruby-identifier">engine</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
+ <span class="ruby-constant">API</span>.<span class="ruby-identifier">engPutVariable</span>(<span class="ruby-identifier">engine</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>.<span class="ruby-identifier">to_matlab</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
245 doc/classes/Matlab/Engine.html
@@ -0,0 +1,245 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: Matlab::Engine</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">Matlab::Engine</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/matlab/engine_rb.html">
+ lib/matlab/engine.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+ <div id="description">
+ <p>
+The <a href="Engine.html">Engine</a> class encapsulates a single connection
+to a MATLAB instance. Usage:
+</p>
+<pre>
+ require 'matlab'
+
+ engine = Matlab::Engine.new
+
+ engine.x = 123.456
+ engine.y = 789.101112
+ engine.eval_string &quot;z = x * y&quot;
+ p engine.z
+
+ engine.close
+</pre>
+<p>
+Values are sent to and from MATLAB by calling a method on the engine with
+the variable name of interest.
+</p>
+
+ </div>
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000020">close</a>&nbsp;&nbsp;
+ <a href="#M000018">eval_string</a>&nbsp;&nbsp;
+ <a href="#M000019">method_missing</a>&nbsp;&nbsp;
+ <a href="#M000017">new</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+ <div id="attribute-list">
+ <h3 class="section-bar">Attributes</h3>
+
+ <div class="name-list">
+ <table>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">driver</td>
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
+ <td class="context-item-desc">
+A reference to the underlying MATLAB driver used by this engine.
+
+</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">handle</td>
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
+ <td class="context-item-desc">
+The low-level opaque engine handle that this object wraps.
+
+</td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Class methods</h3>
+
+ <div id="method-M000017" class="method-detail">
+ <a name="M000017"></a>
+
+ <div class="method-heading">
+ <a href="Engine.src/M000017.html" target="Code" class="method-signature"
+ onclick="popupCode('Engine.src/M000017.html');return false;">
+ <span class="method-name">new</span><span class="method-args">(command = &quot;matlab -nodesktop -nosplash&quot;, options = {})</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Create a <a href="Engine.html#M000017">new</a> <a
+href="Engine.html">Engine</a> object that connects to MATLAB via the given
+command
+</p>
+ </div>
+ </div>
+
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000020" class="method-detail">
+ <a name="M000020"></a>
+
+ <div class="method-heading">
+ <a href="Engine.src/M000020.html" target="Code" class="method-signature"
+ onclick="popupCode('Engine.src/M000020.html');return false;">
+ <span class="method-name">close</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Closes this engine
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000018" class="method-detail">
+ <a name="M000018"></a>
+
+ <div class="method-heading">
+ <a href="Engine.src/M000018.html" target="Code" class="method-signature"
+ onclick="popupCode('Engine.src/M000018.html');return false;">
+ <span class="method-name">eval_string</span><span class="method-args">(string)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Sends the given string to MATLAB to be evaluated
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000019" class="method-detail">
+ <a name="M000019"></a>
+
+ <div class="method-heading">
+ <a href="Engine.src/M000019.html" target="Code" class="method-signature"
+ onclick="popupCode('Engine.src/M000019.html');return false;">
+ <span class="method-name">method_missing</span><span class="method-args">(method_id, *args)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Puts or Gets a value to MATLAB via a given name
+</p>
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
20 doc/classes/Matlab/Engine.src/M000017.html
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>new (Matlab::Engine)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/engine.rb, line 27</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">command</span> = <span class="ruby-value str">&quot;matlab -nodesktop -nosplash&quot;</span>, <span class="ruby-identifier">options</span> = {})
+ <span class="ruby-identifier">load_driver</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:driver</span>])
+
+ <span class="ruby-ivar">@handle</span> = <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">command</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Matlab/Engine.src/M000018.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>eval_string (Matlab::Engine)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/engine.rb, line 34</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eval_string</span>(<span class="ruby-identifier">string</span>)
+ <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">eval_string</span>(<span class="ruby-ivar">@handle</span>, <span class="ruby-identifier">string</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
24 doc/classes/Matlab/Engine.src/M000019.html
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>method_missing (Matlab::Engine)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/engine.rb, line 39</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">method_id</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
+ <span class="ruby-identifier">method_name</span> = <span class="ruby-identifier">method_id</span>.<span class="ruby-identifier">id2name</span>
+
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">method_name</span>[(<span class="ruby-value">-1</span>)<span class="ruby-operator">..</span><span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;=&quot;</span>
+ <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">put_variable</span>(<span class="ruby-ivar">@handle</span>, <span class="ruby-identifier">method_name</span>.<span class="ruby-identifier">chop</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span>)
+ <span class="ruby-keyword kw">else</span>
+ <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">get_variable</span>(<span class="ruby-ivar">@handle</span>, <span class="ruby-identifier">method_name</span>)
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Matlab/Engine.src/M000020.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>close (Matlab::Engine)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/matlab/engine.rb, line 50</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
+ <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">close</span>(<span class="ruby-ivar">@handle</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
282 doc/classes/Matlab/Matrix.html
@@ -0,0 +1,282 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: Matlab::Matrix</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">Matlab::Matrix</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/matlab/driver/native/conversions_rb.html">
+ lib/matlab/driver/native/conversions.rb
+ </a>
+ <br />
+ <a href="../../files/lib/matlab/matrix_rb.html">
+ lib/matlab/matrix.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+ <div id="description">
+ <p>
+The <a href="Matrix.html">Matrix</a> class is used for storing values that
+are sent to or received from MATLAB numeric matrices Usage:
+</p>
+<pre>
+ require 'matlab'
+
+ matrix = Matlab::Matrix.new(20, 400)
+ 20.times { |m| 400.times { |n| matrix[m, n] = rand } }
+</pre>
+
+ </div>
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000026">==</a>&nbsp;&nbsp;
+ <a href="#M000024">[]</a>&nbsp;&nbsp;
+ <a href="#M000025">[]=</a>&nbsp;&nbsp;
+ <a href="#M000022">from_matlab</a>&nbsp;&nbsp;
+ <a href="#M000023">new</a>&nbsp;&nbsp;
+ <a href="#M000021">to_matlab</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+ <div id="includes">
+ <h3 class="section-bar">Included Modules</h3>
+
+ <div id="includes-list">