Tuesday, June 25, 2024
HomeMatlabMan on Simulink Materials on GitHub and MATLAB On-line » Man on...

Man on Simulink Materials on GitHub and MATLAB On-line » Man on Simulink


I made a decision to attempt adopting this new function to open GitHub repositories immediately in MATLAB On-line. That means, you’ll now be capable to open my weblog posts and associated recordsdata in MATLAB On-line in a single click on. As described by Mike, it will work even when you do not have a MATLAB license, all you want is a free MathWorks account.

Let’s have a look at how this works.

A GitHub repository for Man on Simulink materials

To make it simpler so that you can reproduce what I’m masking on this weblog, I created a GitHub repository: github.com/simulink/weblog
For every submit, I’ll add a folder within the repository with the MATLAB stay script I used to create the submit, together with all MATLAB scripts, capabilities, Simulink fashions, and different recordsdata I used whereas writing the submit. Within the above screenshot, you may see the folder for my earlier submit on debugging customized C/C++ code. Extra folders might be added as new posts will get revealed.

Opening Weblog Posts in MATLAB On-line

Did you discover the Open in MATLAB On-line badge on the finish of my final weblog submit?

For those who click on on the hyperlink the next will occur:

  • MATLAB On-line will open and ask you to log in utilizing your MathWorks account
  • The MATLAB stay script will open within the MATLAB Editor, prepared so that you can learn, execute, and modify.

This could make it simple so that you can try to modify my examples immediately in your internet browser.

In case you wish to do the identical together with your GitHub repositories, the best way to create the URL to open any GitHub repository in MATLAB On-line is documented right here: Open in MATLAB On-line from GitHub.

A Simulink Instance

It could be unhappy to finish this submit with out no less than opening and simulating a Simulink mannequin. Right here is an easy mass-spring-damper mannequin:

mdl = ‘ex_modeling_simple_system’;

Here’s what the mannequin appears like in MATLAB On-line:

We are able to simulate it:

in = Simulink.SimulationInput(mdl);

Now it is your flip

Begin proper now and open this weblog submit in MATLAB On-line:

I hope you’ll like this new method to simply entry all of the recordsdata wanted to breed my weblog posts.



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments