WFDB SWIG Toolbox for MATLAB 1.0.0
(2,390 bytes)
<!--#set var="TITLE" value="The WFDB Toolbox for MATLAB FAQ"-->
<!--#include virtual="/head.shtml"-->
<!--#set var="CONTACT" value="wfdb-matlab-support@physionet.org"-->
<script language="javascript" type="text/javascript"><!--
function isJWSInstalled()
{
if (navigator.mimeTypes && navigator.mimeTypes.length
&& navigator.mimeTypes["application/x-java-jnlp-file"])
{
return true;
}
}
var jwsKnownToBeInstalled = isJWSInstalled();
var tryIE = (jwsKnownToBeInstalled ? "false" : "true" );
--></script>
<script language="vbscript" type="text/vbscript"><!--
on error resume next
if tryIE = "true" Then
if IsObject(CreateObject("JavaWebStart.isInstalled")) Then
jwsKnownToBeInstalled = 1
end If
end If
--></script>
<a name="javanotfoun"><h2>Java Class Error</h2></a>
<p>Problem: When I try to run a WFDB command in MATLAB I get the following error:
</p>
<pre>
>> r = rdsamp('mitdb/100', 'maxt', ':10');
Undefined variable "LoadWFDBJava" or class "LoadWFDBJava.load".
Error in rdsamp (line 74)
LoadWFDBJava.load;
</pre>
<p>Solution:
You did not complete the installation of the toolbox. To complete installation follow these steps (note: the steps assume a Windows OS and a user name "wfdbtest"; similar steps for your Operating Systems can be found when you run the install script wfdb_install):
</p>
<ol>
<li> Copy the file from
<br> C:\Users\wfdbtest\.wfdb-swig-matlab\0.0.3\librarypath.txt
<br> to
<br>C:\Program Files\MATLAB\R2012a\toolbox\local\librarypath.txt
<br>(or to your MATLAB startup directory for a local installation). You can copy the files from within the MATLAB prompt by using the following command:
<pre>
copyfile('C:\Users\wfdbtest\.wfdb-swig-matlab\0.0.3\librarypath.txt','C:\Program Files\MATLAB\R2012a\toolbox\local\librarypath.txt','f')
</pre>
</li>
<li> Copy the file from
<br>C:\Users\wfdbtest\.wfdb-swig-matlab\0.0.3\classpath.txt
<br>to
<br>C:\Program Files\MATLAB\R2012a\toolbox\local\classpath.txt
<br>(or to your MATLAB startup directory for a local installation). You can copy the files from within the MATLAB prompt by using the following command:
<pre>
copyfile('C:\Users\wfdbtest\.wfdb-swig-matlab\0.0.3\classpath.txt','C:\Program Files\MATLAB\R2012a\toolbox\local\classpath.txt','f')
</pre>
</li>
<ol>
<!--#include virtual="/footer.shtml" -->
</body>
</html>