% how the jacobian is made: % J(1,1) = first row of x is derived with respect to a1 % J(1,2) = first row of x is derived with respect to a2 % J(2,1) = second row of x is derived with respect to a1 % J(2,2) = second row of x is derived with respect to a2
%% substitute angles angle = [deg2rad(0); deg2rad(90)]; % 2x1 vector J1 = subs(J, a, angle); % replace symbols from 'a' with doubles from 'angle' % / 0, -r2 \ % J1 = | | % \ r1, 0 /
I am aware that most of you are simple code monkeys without any formal education in basic mathematics, so you can ask me if something is not clear.
Carter Mitchell
matlab is great for matrices and signal processing. Use the tool for the job.
Carter Watson
umm.. numpy exists sweetie
talk to me when you can make SVM classifiers in matlab
Luis Gomez
it's mostly bulshit and very slow but noone actually cares, it doesn't even have many important built in functions like Remez
Adrian Lee
Matlab is more or less interchangeable with python.
Thomas Bell
make me a pointer which you assign recursively in m'atlab
Sebastian Reyes
>umm.. numpy exists sweetie Then try doing it in numpy and you will see what I mean.
>kinematics >bullshit Are you a web developer?
It is totally not. This is the whole reason I made this post. There is just no way in python to make a symbolic vector, derive it, and substitute double values for the result. Glad you brought this up.
Charles Rogers
So you know about every single maths package there is then?
Ayden Allen
I have translated my own MATLAB code into C++. MATLAB is still pretty awesome though, although I prefer Scilab because muh freedoms.
Connor Gonzalez
My point: these are about 10 lines of code and you need at least 30 lines to do it in python.
Hunter Adams
>Scilab Isn't Octave the freedomz?
Gabriel Reed
So now it's just about loc huh? Stop moving goalposts.
Julian Baker
>Try translating this into one of your inferior languages: (protip: you can't)
I do agree that pure mathematics sometimes is easier to do in matlab though. But at the end of the day, anyone who does numerical computation would have experience with both python and matlab. In practice it's mostly a matter of preference.
Elijah Smith
OK, I take it back. It is not possible in python at all.
Caleb Wright
>please do my homework
Benjamin Sanchez
I have never even given it a try because it lacks a proper interface like Scilab. Only problem with Scilab is the documentation is poorly translated and some of it is only in French, but I'm fine with it because I can read French.
What I hear from my colleagues is that the only real reason out there to ever use Octave is if you need syntax compatibility with MATLAB (e. g. you have some legacy MATLAB code).
Connor Evans
Have you checked the calendar?
Asher Powell
>python and matlab what about R? its neat for statistics and shit, also open source
Jose Davis
I haven't got any experience with R personally as it's not commonly used in my field. So i can't really speak for it.
Jordan Ross
No, I agree with you. Matlab is amazing. Especially if you're working with hardware and simulink. I also prefer more mathematically-transcribed style of code. Python and CS people in general seem to want to try to abstract away the mathematics into classes and methods, the same way they abstract away assembly. R is also really good but it's more statistics focused. Autists here will complain about its performance, but it's fine unless you're working with Twitter-tier data sets.
Hudson Cruz
Matlab is amazing for numerical computation, I just love the PDE solver.
Connor Butler
> Are you a web developer? No faggot, I was ECE and worked in embedded software, MEMS design and even designed hardware algorithms for my MSc and I also worked in webdev using Django for some considerable time
Dylan Wilson
fair enough i use it for various ml/ai and data visualisation i much prefer it to matlab/scilab/python havent used it for stuff like kinematic simulations though so i cant really say its better than matlab in that regard you should give it a try if you find yourself working with statistics or ai
check pqR for example, its an implementation of R thats faster also pbdR is very good for big data i dont see performance as an issue with R