- Open the Preferences window (in the ENVIRONMENT ribbon tab), or type preferences on the Command Line,
- Expand Editor/Debugger in the left panel of the Preferences window,
- Highlight Language to open Editor/Debugger Language Preferences,
- Check the box Enable automatic variable and function renaming.
Changing several occurrences of the same variable at once
33 ビュー (過去 30 日間)
古いコメントを表示
Hi Everyone,
Very recently, I began using MATLAB at work and am wondering what setting allows me to highlight a variable, change it to a new name, and have the option to press "Shift+Enter" (I think...) and it will change all occurrences of that same variable to the new name. My laptop version at home does it; I would like to set it to function on my work computer as well.
Thanks for the help,
BL
0 件のコメント
回答 (1 件)
Star Strider
2012 年 10 月 21 日
This applies to 2012b and may apply to other versions as well:
That should allow you to do what you want.
1 件のコメント
Walter Roberson
2012 年 10 月 21 日
Variable renaming was also in R2012a, but I think that might have been the first version for it.
参考
カテゴリ
Help Center および File Exchange で Entering Commands についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!