In this post, I share a MATLAB code for numerical calculation of Jacobian matrix for a complex number.
This code was developed by Sithan Kanna, based on my code. If you are just interested in Jacobian of a real number, please see this post.
I really thank to Sithan Kanna for sharing this nice code. If you have a question on this code please send an email to sithankanna a-t gmail d-o-t com
This is a sample result of the code
>> h=@(x)[x(1) ; conj(x(1))]; % nonlinear equation
conjug = 0;
real = 0;
x_test = [0.5*1j];
H = NumJacob(h, x_test, conjug, real)
Have a nice day, and thank you for visiting my blog.
I am Youngmok Yun, and writing about robotics theories and my research.
My main site is http://youngmok.com, and Korean ver. is http://yunyoungmok.tistory.com.
When I compile a source code for Beaglebone black (arm processor) in my ubuntu 12.04 local computer, I met the following problem.
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
The solution is !!
Copy the below text
” deb http://www.emdebian.org/debian unstable main ”
and, go to the package source folder. /etc/apt/sources.list.d
Then, paste the text in a source list file (e.g, lubuntu-desktop-ppa-precise.list)
Then update or install all necessary files like this.
# apt-get install build-essential
# apt-get install libc6-armhf-cross
# apt-get install libc6-dev-armhf-cross
# apt-get install binutils-arm-linux-gnueabihf
# apt-get install linux-libc-dev-armhf-cross
# apt-get install libstdc++6-armhf-cross
# apt-get install gcc-4.7-arm-linux-gnueabihf
# apt-get install g++-4.7-arm-linux-gnueabihf
I got this solution from a reply of this website.
I really appreciate.
I hope this can help your project.
I am sharing a C++ Class for multiple Maxon motor actuation by EPOS2 via USB-Can gateway.
The source code is written for two motors, but it is possible to modify easily to actuate multiple motors.
If you want to see a simpler version for one motor actuation, see this article.
I hope this article makes your life easier.
I am sharing a code for “UDP Server C++ Class with a listening thread”. In the class “UDPThread”, a thread is running to receive a UDP packet.
Just compile a demo program with this command. Then you will understand.
g++ demo_udp_server.cpp UDPThread.cpp -lpthread -o demo_udp_server
This is the result.
I hope this code helps your project.