08.19.06
Posted in Matlab at 7:59 pm by keith
Unlike Java and C/C++, Matlab has its own way of performing your codes because it uses its own pre-compiled codes, therefore users need not compile the source beforehand. To write efficient MATLAB codes, one has to understand the underlying fundamentals that builds up MATLAB itself. For instance, MATLAB is catered more for matrix computations and analysis, rather than coding an executable program, although the latter is still possible. Nonetheless, if you want to write a .exe program, you might be better off playing with C/C++ instead.
So, where does MATLAB supremacy comes in? As mentioned in the previous paragraph, it is good when it comes to matrix operations. For instance, “dot-product” operations, the “\” operations, and those that uses linear algebra operations. In particular, I will focus more on using REPMAT to exploit MATLAB’s engine in this post.
Read the rest of this entry »
Permalink
07.24.06
Posted in Java, Matlab at 9:57 pm by keith

When you first purchased and installed your MATLAB several months (or a few years) ago, you will find that the Java Virtual Machine (JVM) that they supply are either out-dated or obsolete. Actually, I should be saying “obsolete” because in spite of that, MATLAB still functions well with old version of JVM. For instance, the Windows version of Matlab 6.5 will ship along with Sun’s Java Run-time Environment (JRE) version 1.4.2. Only does the latest version of Matlab (v7) comes with JRE version 1.5. Linux (UNIX) users are much luckier in the sense that if the version of your Java VM before Matlab installation is of the latest version, then there isn’t much for you to do. However, if you already have Matlab installed and running an old version of JVM, then chances are you will need to follow some ways to change your JVM. So why do users want to upgrade (or change) their Java VM in Matlab? For me, it is basically out for fun. As for others, it is purely compatibilty of similar version on Java VM platform.
Right, in this post, I will introduce how to change the JVM for Matlab in Linux system. Unfortunately, I will not discuss anything with relate to Windows version of Matlab, although there may be several other posts in Google which you can search to get some results.
Read the rest of this entry »
Permalink
06.02.06
Posted in Matlab at 9:04 pm by keith
If you run a copy of MATLAB, MathWorks Inc. has a set of optimised BLAS (Basic Linear Algebra Subprograms) instructions to be used in the software.
MATLAB uses Basic Linear Algebra Subprograms for its vector inner product, matrix-vector product, matrix-matrix product, and triangular solvers involving “\” commands. MATLAB also uses BLAS behind its core numerical linear algebra routines from Linear Algebra Package (LAPACK), which are used in functions like chol, lu, qr, and within the linear system solver with “\”.
Read the rest of this entry »
Permalink
05.06.06
Posted in C/C++, General, Java, Labview, Matlab at 2:33 pm by keith
This is my first genuine post in this Wordpress blog. Personally, I would like to set up this blog site, for some interest group personnels who wish to exchange pointers and discuss some of the functions used in our generally-used programming languages, such as C/C++, Java, Labview, MatLab and so on.
If you are interested in my introduction to these programming languages, do not hesistate to read on.
Read the rest of this entry »
Permalink