Change workspace variable name

조회 수: 15 (최근 30일)
Thomas LE DIOURON
Thomas LE DIOURON 2013년 10월 25일
댓글: Thomas LE DIOURON 2014년 4월 8일
Hello,
I have lot of workspace variables for a Simulink project and I would like to rename all of them in a Matlab script. I know how to retrieve the variable contents but I don't know how to rename the variable. Could you help me?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 25일
If you want to rename A to B
B=A
clear A
  댓글 수: 3
Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 25일
Why evalin? while B=A is simple
Thomas LE DIOURON
Thomas LE DIOURON 2014년 4월 8일
With only B=A, the variables deals with the Base Workspace, not with the model workspace.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by