sharing everything

Posts in category Matlab

Matlab MEX create struct data type

I want creating MEX function in C/C++ and return struct data type to Matlab. This code can create struct data type with some of variable have int, double, string and matrix (array) data type. We need to use “mxCreateStructArray” matlab function to create struct data in C/C++ and return that struct data type to Matlab. […]

gausswin source code

I want to create gaussian window program in C/C++. I have checked at Matlab and they give gausswin function to create gaussian window. I have checked gausswin Matlab source code and convert that code to C/C++. The coefficients of a Gaussian window are computed from the following equation: where –(N – 1)/2 ≤ n ≤ (N – 1)/2 and α is inversely proportional […]

Matlab Data Precision Problem

I have created a simple computation using Matlab using command :

Nothing wrong with the result. But, try to change data precision format and try to retype command above. we will get Matlab data precision problem from this simple computation.

We get the wrong result. I hope can get 71.5000 from above command. […]

Matlab Change Java Version

We can get java used in Matlab by type “version -java” in Matlab command window. I have use Matlab R2013a, the java version in this Matlab version is :

This is the output after I change the default Matlab java version :

totosugito Hi, This is my notes when I try something. Maybe, […]


Bloggers - Meet Millions of Bloggers