<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UJMP&#187; Universal Java Matrix Package &#187; I need a certain Matlab function, where do I find it in UJMP?</title>
	<atom:link href="http://www.ujmp.org/category/faq/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ujmp.org</link>
	<description>Universal Java Matrix Package</description>
	<lastBuildDate>Mon, 15 Feb 2010 11:40:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>I need a certain Matlab function, where do I find it in UJMP?</title>
		<link>http://www.ujmp.org/i-need-a-certain-matlab-function-where-do-i-find-it-in-ujmp/</link>
		<comments>http://www.ujmp.org/i-need-a-certain-matlab-function-where-do-i-find-it-in-ujmp/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 12:32:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Matlab]]></category>

		<guid isPermaLink="false">http://www.ujmp.org/wp/?p=94</guid>
		<description><![CDATA[UJMP supports many Matlab functions, but not all.
But you can execute Matlab from within UJMP when you use Linux:

Matlab.getInstance&#40;&#41;.setMatrix&#40;&#34;matrixInMatlab&#34;, ujmpMatrix&#41;;
Matlab.getInstance&#40;&#41;.execute&#40;&#34;result = matlabFunction(matrixInMatlab)&#34;&#41;;
Matrix m = Matlab.getInstance&#40;&#41;.getMatrix&#40;&#34;result&#34;&#41;;


Unfortunately, this is not working in Windows. 
You might have to tell UJMP through a parameter, where the program is installed:
-DMatlab="/opt/matlab/matlab"
]]></description>
			<content:encoded><![CDATA[<p>UJMP supports many Matlab functions, but not all.<br />
But you can execute Matlab from within UJMP when you use Linux:</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">Matlab.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">setMatrix</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;matrixInMatlab&quot;</span>, ujmpMatrix<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Matlab.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">execute</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;result = matlabFunction(matrixInMatlab)&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Matrix m <span style="color: #339933;">=</span> Matlab.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getMatrix</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;result&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</p>
<p>Unfortunately, this is not working in Windows. </p>
<p>You might have to tell UJMP through a parameter, where the program is installed:<br />
<code>-DMatlab="/opt/matlab/matlab"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ujmp.org/i-need-a-certain-matlab-function-where-do-i-find-it-in-ujmp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can I resize a matrix?</title>
		<link>http://www.ujmp.org/can-i-resize-a-matrix/</link>
		<comments>http://www.ujmp.org/can-i-resize-a-matrix/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 12:27:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Append]]></category>
		<category><![CDATA[Dense Matrix]]></category>
		<category><![CDATA[Resize]]></category>
		<category><![CDATA[Sparse Matrix]]></category>

		<guid isPermaLink="false">http://www.ujmp.org/wp/?p=90</guid>
		<description><![CDATA[Resizing depends on the matrix implementation. A dense matrix is fixed  in size, as the data is stored in a double[][] array.
However, some matrix implementations allow resizing. For example, you  can create a sparse matrix with MatrixFactory.sparse(0, 0) and then  change the size dynamically with matrix.setSize(5, 5). Note that sparse matrices are [...]]]></description>
			<content:encoded><![CDATA[<p>Resizing depends on the matrix implementation. A dense matrix is fixed  in size, as the data is stored in a <code>double[][]</code> array.</p>
<p>However, some matrix implementations allow resizing. For example, you  can create a sparse matrix with <code>MatrixFactory.sparse(0, 0)</code> and then  change the size dynamically with <code>matrix.setSize(5, 5)</code>. Note that sparse matrices are much slower than dense matrices.</p>
<p>It might be better to append one matrix to another for resizing:</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">Matrix matrix <span style="color: #339933;">=</span> Matrix.<span style="color: #006633;">zeros</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span>, <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Matrix newRow <span style="color: #339933;">=</span> Matrix.<span style="color: #006633;">zeros</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">Matrix biggerMatrix <span style="color: #339933;">=</span> matrix.<span style="color: #006633;">appendVertically</span><span style="color: #009900;">&#40;</span>newRow<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">Matrix biggerMatrix <span style="color: #339933;">=</span> MatrixFactory.<span style="color: #006633;">vertCat</span><span style="color: #009900;">&#40;</span>matrix, newRow<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ujmp.org/can-i-resize-a-matrix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can I instanciate a Matrix without specifying its size?</title>
		<link>http://www.ujmp.org/can-i-instanciate-a-matrix-without-specifying-its-size/</link>
		<comments>http://www.ujmp.org/can-i-instanciate-a-matrix-without-specifying-its-size/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 12:26:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Create Matrix]]></category>

		<guid isPermaLink="false">http://www.ujmp.org/wp/?p=88</guid>
		<description><![CDATA[It is possible to create a zero size matrix:

Matrix m = MatrixFactory.zeros&#40;0, 0&#41;;

]]></description>
			<content:encoded><![CDATA[<p>It is possible to create a zero size matrix:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">Matrix m <span style="color: #339933;">=</span> MatrixFactory.<span style="color: #006633;">zeros</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ujmp.org/can-i-instanciate-a-matrix-without-specifying-its-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sorting the rows of a matrix does not work. The values are ordered [1, 10, 11, 2, 3, 4, 5] and not as I expected.</title>
		<link>http://www.ujmp.org/sorting-the-rows-of-a-matrix-does-not-work-the-values-are-ordered-1-10-11-2-3-4-5-and-not-as-i-expected/</link>
		<comments>http://www.ujmp.org/sorting-the-rows-of-a-matrix-does-not-work-the-values-are-ordered-1-10-11-2-3-4-5-and-not-as-i-expected/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 09:42:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Convert]]></category>
		<category><![CDATA[Sort]]></category>
		<category><![CDATA[StringMatrix]]></category>

		<guid isPermaLink="false">http://www.ujmp.org/wp/?p=31</guid>
		<description><![CDATA[This happens when you sort a StringMatrix with numbers in it. Use convert(ValueType.DOUBLE) to transform the matrix into a DoubleMatrix before sorting.
]]></description>
			<content:encoded><![CDATA[<p>This happens when you sort a <code>StringMatrix</code> with numbers in it. Use <code>convert(ValueType.DOUBLE)</code> to transform the matrix into a <code>DoubleMatrix</code> before sorting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ujmp.org/sorting-the-rows-of-a-matrix-does-not-work-the-values-are-ordered-1-10-11-2-3-4-5-and-not-as-i-expected/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can I use UJMP with Java 1.4?</title>
		<link>http://www.ujmp.org/can-i-use-ujmp-with-java-14/</link>
		<comments>http://www.ujmp.org/can-i-use-ujmp-with-java-14/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 09:42:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ujmp.org/wp/?p=29</guid>
		<description><![CDATA[No, unfortunately not. UJMP is designed for Java 6 and uses generics and other features introduced in Java 5.0. Without modifications, it will not run with lower versions.
]]></description>
			<content:encoded><![CDATA[<p>No, unfortunately not. UJMP is designed for Java 6 and uses generics and other features introduced in Java 5.0. Without modifications, it will not run with lower versions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ujmp.org/can-i-use-ujmp-with-java-14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
