MATLAB Community

MATLAB, community & more

Share and Manage Your Toolboxes Using MATLAB Minimart

As described last time, this post and the next are provided by David Sampson. David leads the MathWorks Consulting group in our UK office and has worked very closely with Jaguar Land Rover on the creation of their MATLAB Store. When it comes to building web stores for groups of MATLAB users, you should listen to a veteran like David. He knows what he’s talking about.

Share and Manage Your Toolboxes Using MATLAB Minimart

by David Sampson

MathWorks introduced toolbox packaging to MATLAB in release R2014b. Toolbox packaging provides MATLAB tool developers with a system for bundling their code, documentation and examples into a single file that users can install into MATLAB with just a few clicks. It is also simple for users to upgrade and uninstall toolboxes. So it’s goodbye to files like, readme.txt and install.m.

Some organizations have used this technology to great effect. In October, Jaguar Land Rover presented at MATLAB EXPO UK on how they have adopted and promoted MATLAB as the platform for developing apps and toolboxes across their engineering community, and how they are sharing 100+ toolboxes among a couple of thousand users via a bespoke MATLAB app store. This is one of the hottest topics in organizations looking to encourage collaboration within their MATLAB communities.

We at MathWorks Consulting wanted to provide an engaging demo to help you to start exploring store-based sharing and management of your MATLAB toolboxes. Introducing the MATLAB Minimart!

To get MATLAB Minimart, go to the File Exchange and download and install the toolbox, which then appears in the Add-on Manager and documentation. For old times’ sake, it even shows up under >> ver.

To start working with MATLAB Minimart, create a folder in which to store your toolboxes. For collaborative use, you should select a shared location that is accessible to all would-be store users. On Windows, that would be a UNC path, like \\company\foo\bar\store. (Note that for this first example, we’ll use the LFS path, C:\work\store\demo).

Next, you will need some toolboxes to put in your store. For demonstration purposes, I have generated a collection of 50 toolboxes consisting of over 300 .mltbx files. (Each toolbox has multiple versions.) Download the collection and unzip the contents to your store.


Next, generate the store

>> minimart.buildStore('C:\work\store\demo')

and view it

>> minimart.showStore('C:\work\store\demo')

You will see something like this.


The store summary page contains one card per MATLAB toolbox, with the name, summary and thumbnail shown. The toolbox metadata is that of the latest version in the store, although older versions are also present.


Each toolbox card includes a “more info” button to browse further details, including for older versions. Here is the detail view for the Monster Truck Toolbox.


Each toolbox page contains a version dropdown and a “download” button. The version dropdown lists all available versions of the toolbox and enables you to bring up details of any particular version. The “download” button enables you to retrieve the toolbox for installation into MATLAB.

In my next post, I will explain how users can retrieve and install toolbox updates from a store, and share some suggestions on customizing your MATLAB environment and your store.

  • print


To leave a comment, please click here to sign in to your MathWorks Account or create a new one.