Next Step Suggestions for Symbolic Workflows in Live Editor
See how to use the next step suggestions menu in Live Editor for guidance on symbolic math workflows.
Published: 22 Jun 2021
In this video, we will demonstrate how to use the next steps suggestions menu in MATLAB Live Editor to get guidance for symbolic workflows. If you have analytical expressions, describing behavior of a system and you want to study it, you open the MATLAB Live Editor and enter the expression. If you are a Symbolic Math power user, you might know many useful operations to do next. You could integrate the expression or simplify it.
If you knew these were potential next steps, you could use the symbolic math doc pages to find the syntax. But we thought of a better way to make this easier for you by providing suggestions for next steps. The next steps suggestions menu, in the Live Editor, enables you to interactively execute symbolic function calls and Live Editor tasks simply by right clicking on the output or by clicking on the three dot icon. It gives you a list of relevant function calls that you can use to continue working with the output.
Let's take a look at how to use the next steps suggestions menu in a symbolic workflow. We start with a symbolic expression in MATLAB Live Editor. Once we execute this section, a three dot icon appears when we hover over the output. Clicking on that icon shows a list of functions that you can apply on this expression. We can differentiate this expression and see how the MATLAB function call looks like.
We can also plot expressions using the suggestions menu. There are several options for plotting as well. For example, we can plot this expression in 3D. Next up suggestions menu also includes Live Editor tasks for solving and simplifying symbolic expressions. To simplify our original expression, we click on the icon and just rewriting and simplifying expressions and then select simplifying expressions. A Live Editor task opens up where you can choose the expression to input and select the method and effort to simplify the expression.
You can also generate the corresponding MATLAB code for future reference or share it with others. To learn more about the Live Editors tasks, check out the video linked below. In this video, you learned how to use the next steps suggestions menu to interactively execute symbolic functions and Live Editor Tasks in the MATLAB Live Editor for common symbolic workflows. For more information, go to the symbolic math documentation page and search for next steps suggestions or choose a link below.