Giter Club home page Giter Club logo

matlabessentialskit's Introduction

MatEssentials

View Matlab Essentials on File Exchange MATLAB CircleCI

MatEssentials (from Matlab Essentials) is an attempt to fill the gaps of common programming functions that are not included into the base installation. Some of these functions are for example lerp, sigmoid, linespacen, rot2d, rotx, random, randint, depfun, isodd, isneg and many others. Additionally, we provide an extensive color packages with syntax color_ and colormaps under cmap_ (based on the matplotlib in Python).

Installation

We highly recommend installing the essentials package using the Matlab Package Manager (MPM), which can be easily installed via the Matlab Add-On Mananger . Once MPM is installed, the essential package can be installed by the following command in the Matlab command window

mpm install matessentials -u https://github.com/BJCaasenbrood/MatlabEssentials.git --all-paths

This will generate a folder under MATLAB Add-Ons/Collections/mpm/mobeets-mpm-c626429/mpm-packages/matessentials/.

Improved Matlab colors

The package comes with an improved color pallete for plotting. To set and fix the colororder, use set_colororder.

Improved color pallete

To revert back to the default matlab colors, use set_colororder(cpal_matlab);

Improved Matlab colormaps

Matlab lacks many of the standard colormaps. Colormaps in the package are based on the ones from Python in the package MatPlotLib, which are given under cmap_.... These colormaps can also be modified using an additional input, e.g., cmap_turbo(-1) flips the colors, whereas cmap_turbo(0) mirrors the colormap.

Improved color maps

List of documented functions

Function Name Description
add2path Add specified directory or current directory to the search path.
annihil Compute the annihilator of a set of vectors.
background Set the background color or image of the current figure.
clamp Limit the values of an array between lower and upper bounds.
clr Clear the command window, workspace, and figures, and turn off beep.
cmapping Interpolate, decimate, or flip a colormap.
depfun List dependencies required by a function.
hex2rgb Convert hexadecimal color codes to values.
invlerp Inverse linear interpolation.
iseven Check if an integer is even.
isflint Check if a scalar or vector is a floating-point integer.
isneg Check if a scalar is negative.
isodd Check if an integer is odd.
ispos Check if a scalar is positive.

matlabessentialskit's People

Contributors

bjcaasenbrood avatar

Watchers

 avatar  avatar

Forkers

yuloveyet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.