Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-interoperability » Using Matlab Bindings with Octave
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Bill Denney


Posts: 32
Registered:
March 2006
Using Matlab Bindings with Octave 18 Aug '06 16:54 Go to previous message

Octave recently added support for mex files, and because of that
support, I decided to test out the CVS libsbml with the current version
of Octave (2.9.7, http://www.octave.org/). Everything works fine. I
don't know how to setup autconf for this, but if you do the following
the binding build will work:

* Make an executable file in your path called mex that is:

mkoctfile --mex $*

* Put any executable file in the path with the name matlab (autoconf
checks for matlab, probably to do tests).

If you want to run the tests, you can change to the
src/bindings/matlab/test directory and run

octave --path .. --eval testBinding

which will result in:

GNU Octave, version 2.9.7 (i486-pc-linux-gnu).
Copyright (C) 2006 John W. Eaton.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <bug@octave.org> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

Testing readFromFile1:
Number tests: 69
Number fails: 0
Pass rate: 100%

Testing readFromFile2:
Number tests: 81
Number fails: 0
Pass rate: 100%

Testing readFromFile3:
Number tests: 73
Number fails: 0
Pass rate: 100%

Testing readFromFile4:
Number tests: 21
Number fails: 0
Pass rate: 100%

Testing readFromFile5:
Number tests: 64
Number fails: 0
Pass rate: 100%

Testing readFromFile6:
Number tests: 25
Number fails: 0
Pass rate: 100%

Testing readFromFile7:
Number tests: 33
Number fails: 0
Pass rate: 100%

Overall tests:
Number tests: 7
Number fails: 0
Pass rate: 100%

Matlab binding successfull

There was one problem that I had, readFromFile6.m had a capitalization
issue (it will cause problems on any case-sensitive platform) that can
be fixed with the patch below (or renaming cSymbolTime-reaction-l2.xml
to csymbolTime-reaction-l2.xml).

Have a good day,

Bill

cvs diff: Diffing .
Index: testReadFromFile6.m
===================================================================
RCS file:
/cvsroot/sbml/libsbml/src/bindings/matlab/test/testReadFromFile6.m,v
retrieving revision 1.1
diff -u -r1.1 testReadFromFile6.m
--- testReadFromFile6.m 2 Dec 2005 10:56:11 -0000 1.1
+++ testReadFromFile6.m 18 Aug 2006 23:49:34 -0000
@@ -1,6 +1,6 @@
function y = testReadFromFile6

-filename = fullfile(pwd,'test-data', 'cSymbolTime-reaction-l2.xml');
+filename = fullfile(pwd,'test-data', 'csymbolTime-reaction-l2.xml');

m = TranslateSBML(filename);

@@ -105,4 +105,4 @@
else
y = 0;
end;
-
\ No newline at end of file
+
cvs diff: Diffing test-data

      

SubjectPosterDate
Read Message   Using Matlab Bindings with Octave  Bill Denney18 Aug '06 16:54
Read Message   Re: Using Matlab Bindings with Octave Sarah Keating19 Aug '06 01:22
Read Message   Re: Using Matlab Bindings with Octave Bill Denney19 Aug '06 13:20
Previous Topic:Compilation problems of libsbml 2.3.4
Next Topic:Compilation problem with libsbml 2.3.4 and gcc 4.1
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.