Tag Archives: Matlab

Generating a trajectory of quaternions between two given quaternions

First, check my previous post on slerp to learn how to interpolate between two quaternions. In this post, we make a function that uses the previously developed interpolation to generate points (quaternions) between and initial and a final quaternion namely, … Continue reading

Posted in control, Linux, Machine Learning, MATLAB, programming, Robotics, ROS, Software, Ubuntu, Uncategorized | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

Slerp: Spherical linear interpolation in quaternion space

in my previous post, I explained the simple Lerp method for calculating linear interpolation in the quaternion space. I also mentioned that while normalizing the output could help to get an optimized result, the velocity curve is not constant. To … Continue reading

Posted in Linux, Machine Learning, MATLAB, Optimization, programming, Robotics, ROS, Software, Ubuntu, Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Compress files in MATLAB without other file compression software – Method 3, tar & untar

In the previous post and the post before that, I mentioned two methods for compressing and decompressing files directly in MATLAB using standard ZIP and GNU ZIP methods. In this folder, I demonstrate that we can make tar files using … Continue reading

Posted in Linux, MATLAB, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , | Leave a comment

Compress files in MATLAB without other file compression software – Method 2, GNU ZIP-UNZIP

In previous post, I showed how you can make zip files in MATLAB and also how to unzip them. The previous function zip used the standard ZIP compression. In this post, we take a look at GNU ZIP and GNU … Continue reading

Posted in Linux, MATLAB, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Compress files in MATLAB without other file compression software – Method 1, ZIP-UNZIP

You can easily zip a file (or a set of files) in MATLAB without requiring any external compression software being installed on your machine. This is useful to be able to compress files while still in MATLAB. In this post, … Continue reading

Posted in Linux, MATLAB, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Working with PATHs in MATLAB

How to find the search path list inside MATLAB? All the saved and default paths that MATLAB looks inside to find a function are stored in an m-file called pathdef.m. You can easily use the which command to do this: … Continue reading

Posted in Linux, MATLAB, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

How to #interpolate using #splines: A simple #MATLAB #tutorial for beginners

In this video I will show how you can use curve fitting functions provided by MATLAB to interpolate data. First, I make some datapoints and plot them. Then I use the function ‘spapi’ (spline interpolation) only with 2 knots to … Continue reading

Posted in Linux, Machine Learning, MATLAB, programming, Ubuntu | Tagged , , , , , , , , , , , , , , , , , | Leave a comment

Particle Swarm Optimization – A MATLAB Tutorial for beginners

In this tutorial I will show you how to use the built-in Particle Swarm Optimization (PSO) algorithm in MATLAB. I optimize the famous Ackley’s function which has a global minimum at [0 0] and the function value in the optimum … Continue reading

Posted in Linux, Machine Learning, MATLAB, Optimization, programming, Robotics, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Using Multi-Objective Genetic Algorithm to Optimize the ZDT1 test problem – A MATLAB video tutorial

In this tutorial, I show implementation of the ZDT1 multi-objective test problem and optimize it using the built-in Multi-objective Genetic Algorithm in MATLAB. The given objective function is a standard test function that helps a beginner user to understand the … Continue reading

Posted in Linux, Machine Learning, MATLAB, Optimization, programming, Robotics, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Optimization with Pattern Search – A MATLAB Tutorial for beginners

Pattern search is a local optimization technique that can be applied on both constrained and unconstrained optimization problems. The constraints can be either linear or nonlinear. The algorithm works based on an adaptive mesh which is aligned with the coordinate … Continue reading

Posted in Linux, Machine Learning, MATLAB, Optimization, programming, Robotics, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment