![]() In fact, if we just scroll up to the beginning, we can go to the Insert tab and click on the Table of Contents button, every item here in the table now, is a hyperlink to the corresponding section. Of course, you can also create different levels of headings using the Start menu again.Īll these headings will be used to conveniently to create a table of contents. If you put a double percentage before a text, you turn this into a heading with a new section breaks simultaneously. To add a section break, you can use either a section break button or the shortcut Control-Alt-Enter. Or to create a heading you can either use the style menu, a shortcut or put a mark down before the text the, double sharp. For example, to create a title you click on the text and simply choose, Title, in the style menu. Now let me jump into a larger live script, to review how to format the text in different ways. Anyway any script can be converted into a live script simply by resaving it as MLX. A traditional script that would lose all the output and would turn texting to comment. You can step to next line or continue to next breakpoint and when you are OK with the code you can stop debugging and eliminate all the breakpoints.īut just a note, when you save a script only MLX format allows to store output and text inside the file itself. We could also add a breakpoint to debug the code and execute a step by step to catch also semantic errors. If we stumble in any syntax issue don't worry the error message can help you understand what is missing and correct. Life's great is great to quickly experiment what happens when you change a parameter or what happens if we change the design in the function definition, or what happens if we add a square. To re-execute the whole code, click on the Run section button again to see the graphics as well. As you can see MATHLAB will always assist you suggesting the correct syntax for any optional different parameter. And then you add a new lines of code, maybe to get a plot. You add more text to provide more background and explanation of the work in progress. So we can collect a bunch of comments to create a whole code section, which is kind of computational unit, and then click on Run section button to immediately get the output. Note that after typing a few letters of the function name, it will pop up a list of the available functions starting with that prefix, and when you type the open parentheses, live editor will automatically complete it with a closed one. ![]() Then click on the code button to enter more code. Text is like a comment but without percentage. Enter code integrate areas and click on the text button to enter some text describing what you are going to do. In a live script, you can mix up a text and code together. You can also type edit and the file name with mlx extension. Click a New Live Script button, or use a new menu to open a new Live Script. ![]() In this video, I'm going to review the main features of Live Script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |