Loren on the Art of MATLAB

Turn ideas into MATLAB

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

The MATLAB Live Script Gallery 3

Posted by Loren Shure,

Today I’d like to introduce a guest blogger, David Garrison, who is a MATLAB Product Manager here at MathWorks. Dave will talk about the Live Script Gallery where you can go to view and run interesting live scripts from the MATLAB Community.

Contents

The Live Script Gallery

Hello everyone. Loren has been kind enough to let me use her blog to tell you about the Live Script Gallery. The Live Script Gallery is a new page on our website where you can go to view and run a collection of live scripts written by members of the MATLAB Community.

When you visit the Live Script Gallery page you will see something like this:

The gallery contains 30 example live scripts. You can visit the File Exchange entry for any of these examples by clicking on "View on File Exchange". Once there, you can download the example and run it in MATLAB or MATLAB Online.

More importantly, you can run (and even edit) any of these examples in your browser by clicking on "Run this Example". This will open the live script in a browser-based version of the MATLAB Live Editor powered by MATLAB Online. When you open the example to run it in the browser, you see something that looks like the picture below. You can run the live script using the "Run" button in the toolstrip. You can also run individual sections from the toolstrip or by clicking on the blue bar on the left hand side.

Creating Your Own Live Scripts

If you would like to learn more about how to create your own live scripts, visit the MATLAB Live Editor page. The Live Editor was introduced with MATLAB R2016a and allows you to combine code, output, and formatted text in a single executable document. Use live scripts to tell a story. Enhance your code and output with images and hyperlinks. Insert equations using the interactive editor or create them using LaTeX. Add interactive controls to set values in your script. You can then share your live scripts directly with colleagues, so they can reproduce or expand on your work. Publish your work as a PDF, HTML, or LaTeX document.

Any Questions?

If you have any questions or comments about the Live Script Gallery or want to tell us about your use of the Live Editor, please let us know here.


Get the MATLAB code

Published with MATLAB® R2019a

3 CommentsOldest to Newest

Gareth Thomas replied on : 1 of 3
Hi David and Loren, thanks for sharing this it is really awesome:) I really like the idea of sharing great live scripts, in particular empowering the community to be able to have their work hosted on MathWorks.com in some shape or form. I have to say I really like the evolution of File Exchange that also incorporated the "old MATLAB Examples" and I was wondering would it not be possible to have a live script Filter by Type? Maybe something for the next iteration of the File Exchange.

Add A Comment

Your email address will not be published. Required fields are marked *

Preview: hide