Use variable values froma code block directly in a Live Script text cell (inline evaluation)

조회 수: 31 (최근 30일)
MATLAB help states that using backticks around a variable name will have it replaced with its value when its inline in a text block.I am using the Live Editor and saving as an mlx file. Below is an image of a section of code and I want to state the altitude in a text block. An extensive search of the internet provided these methods but none of them work. The variable name is not replaced by the value. Has anyone else tried this and had it work successfully? I prefer this to a statement in the code to write a sentence, its just cleaner overall. Any suggestions. tips or known examples that work? Trying out 2025b, does not work on 2023b either. Any help greatly appreciated!
Code image:
  댓글 수: 5
Randall
Randall 대략 3시간 전
Wow, I have to admit its an eye opener, so much for AI. Thanks.

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

답변 (0개)

카테고리

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

제품


릴리스

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by