![]() |
如何在MATLAB中列出全局变量?
如何查看在MATLAB中定义的全局变量的列表? (我正在使用R2009a)。
我已经在Google和SO上对此进行了不成功的狩猎,因此,如果之前曾被询问过,我深表歉意。 [B]回答:[/B] [URL="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/who.html"]WHO / WHOS[/URL]命令可以仅向您显示全局变量: who global %# Shows just the variable names whos global %# Shows variable information, like size, class, etc. 您还可以获取在变量中返回的变量名称/信息,而不是显示在屏幕上: names = who('global'); %# A cell array of variable names data = whos('global'); %# A structure array of variable information [url=https://stackoverflow.com/questions/2731925]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 14:17。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.