Results 1 to 4 of 4
- 10-24-2009, 01:13 AM #1
Member
- Join Date
- Oct 2009
- Posts
- 2
- Rep Power
- 0
Matlab data type implementation & speed
Hi all,
I have a great deal of Matlab code which I'm required to implement in JAVA.
Since the code is complicated and far from being OO I tried to create a Matlab data type in JAVA. after doing so I simply translated the code using the data type.
The problem is run time.
The same code takes a fraction of a second in Matlab and almost 2 minutes(!!!) in JAVA. I used the "ojalgo" package with my implementation, so most of the code should be efficient.
why is this happening? Am I too naive to try this?
Does Matlab have some special "trick" to hasten it's running time?
Any insights will be highly appreciated.
- 10-24-2009, 01:18 AM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
It depends on the functions you are talking and how you have implemented them.
- 10-24-2009, 01:42 AM #3
Member
- Join Date
- Oct 2009
- Posts
- 2
- Rep Power
- 0
- 10-24-2009, 02:00 AM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
run a matlab script from java
By npoorni in forum Advanced JavaReplies: 5Last Post: 02-11-2010, 03:32 PM -
sychronized data type
By java girl in forum Threads and SynchronizationReplies: 3Last Post: 02-13-2009, 08:37 AM -
How to speed sql Statements?
By bezudar in forum Advanced JavaReplies: 3Last Post: 11-20-2008, 09:53 AM -
Help, Integrate a Java with Matlab
By toby in forum Advanced JavaReplies: 2Last Post: 08-07-2008, 07:08 AM -
I need to be able to deal with functions like matlab
By romina in forum New To JavaReplies: 1Last Post: 08-07-2007, 05:37 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks