Tag Archives: ubuntu

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

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

Check the version when a function was introduced – MATLAB

I just saw the following function written in MATLAB that can extract the information about when  a specific function was introduced by MATLAB. Check it out here.  

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

MEX file in MATLAB – Part 1

In this tutorial I will show you a very simple example of a MEX file in MATLAB. A MEX file is a compiled version of a C/C++ code written and compiled in MATLAB that can be used/executed as an M-file. … Continue reading

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

Investigating code performance in MATLAB – Part 1: For-loop

Here I want to show you a very simple example in MATLAB. Consider we have a large matrix (can be an image also) and we want to perform element-wise operation on the matrix elements. Let’s first create a large matrix: … Continue reading

Posted in Linux, MATLAB, Optimization, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | 4 Comments

Update status of your code output in one line (MATLAB)

Consider you want to report the status of your code in the command-line, but you do not want to print a new line each time. For instance, to show the percentage of the progress at the same line from 0%, … Continue reading

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