Recent content by sprince09
-
S
MATLAB Trying to speed up some MATLAB code
No guarantees ;)- sprince09
- Post #15
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
S
Project Euler - What you've learned
I learned that pretty much everything I ever need to implement has been implemented by an open source project somewhere along the line...- sprince09
- Post #8
- Forum: Programming and Computer Science
-
S
MATLAB Trying to speed up some MATLAB code
I liked it... I'd probably use it instead of MATLAB if I didn't already know MATLAB. I know Scilab is pretty big in China, and it's really gotten much more usable in the past few months, so I wouldn't be surprised if it started showing up more in industry.- sprince09
- Post #13
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
S
MATLAB Trying to speed up some MATLAB code
Yup, T is completely pre-allocated. I'd also considered writing a mex function to do this calculation, but it really isn't that important because I'm looking more at algorithm efficiency (eg, number of iterations) rather than execution time. The matrix calculation I was originally asking about...- sprince09
- Post #11
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
S
MATLAB Trying to speed up some MATLAB code
Yeah, the only real reasons I do anything in MATLAB at all are that the syntax and plotting are stupid easy, even for stuff like moving 3D surfaces. If I could find a 3D plotting library for C that wasn't awful to use, I'd ditch MATLAB all together...- sprince09
- Post #8
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
S
MATLAB Trying to speed up some MATLAB code
Well, I haven't written the full version of the C code, but I am curious how MATLAB (and Octave) compares to C for some simple matrix operations, especially multiplication. My test: perform 1,000,000 4x4 matrix multiplications in both MATLAB, GNU Octave, and C and see how long each takes to...- sprince09
- Post #5
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
S
MATLAB Trying to speed up some MATLAB code
Yeah, I think I'm just going to write a 2nd copy of the code in C to do speed comparisons with. Thanks anyway- sprince09
- Post #3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
S
MATLAB Trying to speed up some MATLAB code
Hi guys, I've got some MATLAB code that calculates the forward kinematics for a robotic arm. This calculation relies on the successive multiplication of a series of 4x4 matrices, and currently I have this coded (more or less) as: ... T(:,:, 1) = T0; for i = 2:njoints T(:,:, i+1) =...- sprince09
- Thread
- Code Matlab Matlab code Speed
- Replies: 14
- Forum: MATLAB, Maple, Mathematica, LaTeX