Live functions versus function

조회 수: 16 (최근 30일)
Matthieu
Matthieu 2022년 9월 12일
편집: Matthieu 2022년 9월 13일
Hello, I don't see advantage of live functions versus functions, except the block of text....
Could you explain how to take advantage of Live funcitions ?
What are the practices that take advantages of Live functions ? Example ? way to code&debug faster or simpler or with more explainations ?
I found nothing on matlab website to enlight this (A lot of things are available for live scripts...).
Thanks
  댓글 수: 1
Rik
Rik 2022년 9월 12일
Not being a user, I suspect most of the advantages are to be found in the report generation tools.
The tab completion used to be much more feature-rich in the live editor, but that has been merged into the normal editor in R2021b (IIRC).

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2022년 9월 12일
Live Script allow a lot of annotation, including text and equations and images. That makes them well suited for tutorial-type use, which is quite popular for academic purposes, and for report generation purposes. These days all of the newer Mathworks examples use Live Script so that they can discuss in human-readable form what is happening, while also mixing in the code.
Live Script also permits interactive controls "in-line" -- rather than having a pop-up figure containing a slider, the code can have the slider show up right near the place that the slider is used, thereby allowing the user to play with the slider to explore the results on execution of a section.
Thus, Live Script provide improved User Experience for "Human In The Loop" types of programs (as opposed to pure calculation programs -- but even pure calculation programs often benefit a lot from being able to insert equations and images right there in the comments.)
  댓글 수: 1
Matthieu
Matthieu 2022년 9월 13일
편집: Matthieu 2022년 9월 13일
Hello Walter, thanks for your answer however my questions was not about Live scipts but on Live Functions :
With Live Functions : I don't understand how to use : interactive controls "in-line", how to play with the slider to explore the results on execution of a section. no plot update od plot occurs ...
I don't understand how to use : Section break also in Live functions

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Scripts에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by