필터 지우기
필터 지우기

Real Time Update of Workspace Variable Values while Running Code?

조회 수: 37 (최근 30일)
Daniel Fiuza Dosil
Daniel Fiuza Dosil 2017년 8월 31일
편집: per isakson 2020년 5월 14일
Hello all,
Is it possible to update the values of the variables in the workspace while running a code? I have to track several counters and size of vectors, and it will be really useful to see those variables in the workspace instead of printing them into the command window.
Kind regards,
Daniel

답변 (1개)

Veda Upadhye
Veda Upadhye 2017년 9월 6일
편집: per isakson 2020년 5월 14일
Hi,
Unfortunately, you cannot use the variable editor to do that in MATLAB currently. Instead, you could use Live Editor and keep track of your variables in real time. Here is the documentation link for your reference:
I hope this helps!
-Veda
  댓글 수: 2
Steven Lord
Steven Lord 2017년 9월 7일
Or if you're doing this to try to debug your code, search the documentation for "debugging" and use the tools available in the Editor like breakpoints and stepping.
Steven
Steven 2019년 12월 24일
The bad part of the live editor is it converts your m-file to a non text searchable file, I'm not a fan

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by