Skip to content

General purpose MATLAB functions, scripts, classes, handles, etc.

Notifications You must be signed in to change notification settings

iswunistuttgart/matlab-tooling

Repository files navigation

MATLAB Tooling

A collection of useful functions and scripts that make working with MATLAB a breeze and even more efficient.

Care to know what this package is providing? Check out the list of functions giving you a quick overview of all the functions available.

Getting Started

The simplest and quickets way to getting started is by cloning this repository and then running the following MATLAB code

p = projpath(); addpath(p{:}); startup();

What this will do is

  1. Get the path definitions for the project from projpath() as a cell array
  2. Add the paths required to use this project using MATLAB's built-in addpath() method
  3. Start the project by running some startup configurations defined in the startup() function

That's it. You are now officially all set to use any of the functions defind in the list of functions. Happy efficiency.

Guides

Comments

On notation of matrices (aka. row/column issue)

I like to think of MATLAB dealing with the row/column issue as saying that columns contain different variables, and rows contain different observations of those variables. Thus, the rows might be different observations in time of three different temperatures, which are represented in columns A, B, and C. This is consistent with MATLAB's behaviour for sum, mean, etc., which produce "the sum of all my observations for each variable".

On numel vs length

IMHO from a code readability viewpoint, length should be used on one-dimensional arrays. It is about "intentional programming", you see the code and understand what programmer had in mind when conceiving his work. So when I see numel I know it is used on a matrix. @see https://stackoverflow.com/questions/3119739/difference-between-matlabs-numel-and-length-functions

About

General purpose MATLAB functions, scripts, classes, handles, etc.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published