MATLAB Programming Fundamentals - MathWorks
Add Interactive Controls to a Live Script You can add sliders, drop-downs, check boxes, edit fields, and buttons to your live sc ...
Control Description Configuration Details Drop-Down List Use drop-down lists to interactively change the value of a variable by ...
Control Description Configuration Details Button Use button controls to interactively run code on button click. When using butto ...
TipWhen using a button control in a live script, consider setting the Run field for all other controls in the live script to Non ...
Share Live Script When the live script is complete, share it with others. Users can open the live script in MATLAB and experimen ...
If you share the live script as a static PDF, Microsoft Word, HTML, or LaTeX document, the Live Editor saves the control as code ...
Create Live Functions Live functions are program files that contain code and formatted text together in a single interactive env ...
Add Code After you create the live function, add code to the function and save it. For example, add this code and save it as a f ...
You also can call the live function from a live script. For example, create a live script called mystats.mlx. Add this code that ...
See Also More About “Add Help for Live Functions” on page 19-65 19 Live Scripts and Functions ...
Add Help for Live Functions You can provide help for the live functions you write. Help text appears in the Command Window when ...
When you type help addme in the Command Window, the help text displays. The first line of help text, often called the H1 line, t ...
Use the doc command to display the help text in a separate browser. Add Help for Live Functions ...
See Also More About “Create Live Functions” on page 19-61 “Format Files in the Live Editor” on page 19-38 “Share Live Scripts a ...
Share Live Scripts and Functions You can share live scripts and functions with others for teaching or demonstration purposes, or ...
Ways to Share Instructions As a static document capable of being viewed outside of MATLAB Export the script or function to a sta ...
See Also Related Examples “Create Live Scripts in the Live Editor” on page 19-7 “Format Files in the Live Editor” on page 19-38 ...
Live Code File Format (.mlx) MATLAB stores live scripts and functions using the Live Code file format in a file with a .mlx exte ...
See Also More About “What Is a Live Script or Function?” on page 19-2 “Create Live Scripts in the Live Editor” on page 19-7 Ex ...
Introduction to the Live Editor This example is an introduction to the Live Editor. In the Live Editor, you can create live scri ...
«
31
32
33
34
35
36
37
38
39
40
»
Free download pdf