Comments on: Live Editor and Live Scripts https://blogs.mathworks.com/student-lounge/2017/05/17/live-editor-and-live-scripts/?s_tid=feedtopost The student lounge blog focuses on student success stories. Winning student teams share their knowledge and the MathWorks student programs team shares best practices and workflows using MATLAB and Simulink. Thu, 25 Apr 2019 11:17:06 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: Christoph Hahn https://blogs.mathworks.com/student-lounge/2017/05/17/live-editor-and-live-scripts/#comment-2357 Wed, 06 Jun 2018 14:36:39 +0000 https://blogs.mathworks.com/student-lounge/?p=8#comment-2357 enables you to perform symbolic computations from the MATLAB® command line by defining a special data type — symbolic objects. Functions are called using the familiar MATLAB syntax and are available for integration, differentiation, simplification, equation solving, and other mathematical tasks. Symbolic computations augment the numeric capabilities of MATLAB. You can convert symbolic results to numeric results and use them outside Symbolic Math Toolbox." https://www.mathworks.com/help/symbolic/symbolic-computations-in-matlab.html There are a few examples in the documentation, such as this one: https://www.mathworks.com/help/symbolic/examples/compute-binomial-coefficients-exactly.html. As I am somewhat rambling here with my reply, please let me know whether I anticipated correctly what you were asking. Best, Christoph]]> Hi Vol Kan,
interesting question!
MATLAB won’t allow you to solve equations that you inserted using LaTeX commands because these are part of the text domain and not part of the code domain in a live script. The feature is meant to create visually appealing formulae.

However, the following might interest you. When it comes to solving equations in MATLAB there is an ‘alternative way’ called symbolic math. The standard approach is a solving equations numerically based on approximating solutions. Let me quote from the product information “Symbolic Math Toolbox™ enables you to perform symbolic computations from the MATLAB® command line by defining a special data type — symbolic objects. Functions are called using the familiar MATLAB syntax and are available for integration, differentiation, simplification, equation solving, and other mathematical tasks. Symbolic computations augment the numeric capabilities of MATLAB. You can convert symbolic results to numeric results and use them outside Symbolic Math Toolbox.” https://www.mathworks.com/help/symbolic/symbolic-computations-in-matlab.html

There are a few examples in the documentation, such as this one: https://www.mathworks.com/help/symbolic/examples/compute-binomial-coefficients-exactly.html.

As I am somewhat rambling here with my reply, please let me know whether I anticipated correctly what you were asking.

Best, Christoph

]]>
By: Vol Kan https://blogs.mathworks.com/student-lounge/2017/05/17/live-editor-and-live-scripts/#comment-2355 Wed, 06 Jun 2018 13:10:38 +0000 https://blogs.mathworks.com/student-lounge/?p=8#comment-2355 Hello,
I am trying to figure out how to run a code, which is written in latex format in Matlab. I do know how to take the mathematical expression, which is written in latex, from latex and paste it to the live editor. But having difficulties to run that code in the live editor. Is it possible for you to share a simple example and run it with for loop starting from 1:40.

]]>
By: Christoph Hahn https://blogs.mathworks.com/student-lounge/2017/05/17/live-editor-and-live-scripts/#comment-10 Fri, 19 May 2017 11:48:20 +0000 https://blogs.mathworks.com/student-lounge/?p=8#comment-10 Hi Yao Gang, thanks very much, good catch! I just updated the link, seems that they have changed the URLs. Cheers

]]>
By: yao gang https://blogs.mathworks.com/student-lounge/2017/05/17/live-editor-and-live-scripts/#comment-9 Thu, 18 May 2017 02:42:49 +0000 https://blogs.mathworks.com/student-lounge/?p=8#comment-9 ,it will be better if it can run faster. :)]]> Hi,the link of [the Live Editor in the browser] in the [Conclusion] seems not correct: The page you were looking for does not exist. Use the search box or browse the examples below to find the page you were looking for.
Do you mean this one? http://www.mathworks.com/help/symbolic/examples/integration.html

Live Script works very well with  Symbolic Math Toolbox™,it will be better if it can run faster. 🙂

]]>