I was amazed when use randn command at Matlab. randn command will generate random data every we call that command. After I search at google, I found how to make this happen. I get this code at seismic unix source code. This code will generate random noise or white noise with Gaussian method. Code for
MATLABĀ® is a high-level language and interactive environment that enables you to perform computationally intensive tasks faster than with traditional programming languages such as C, C++, and Fortran (http://www.mathworks.com/products/matlab/). Matlab have a complete function to solve mathematic problem. We can call function code from matlab in other language (ex. C/C++). Before we create code in
When I try to compile c++ code with gcc I have error report undefined reference to __gxx_personality_v0. To solve this problem, you can choose the method : Compile your code with g++ Add flag -lstdc++ at your command when compiling code. Add text void *__gxx_personality_v0; in your source code. Source : http://stackoverflow.com/questions/329059/what-is-gxx-personality-v0-for http://mail.gnome.org/archives/gtk-app-devel-list/2004-October/msg00207.html
For Indonesian version visitĀ my blog at http://fsharing.blogspot.com/2011/01/cara-mengcopy-array-di-cc.html When we create array in C/C++, we can copy one array to another by looping every element array with for or while command. Besides using this command, we can use memcpy command (we can must include string.h at header of my code). This is example how to