How to rename a variable in Matlab using one command without reallocating memory? Thanks a lot!
s*w
2 楼
【 以下文字转载自 Business 讨论区 】 发信人: seasnow (加油,加油!), 信区: Business 标 题: [包子贴]谁能帮忙找到这本书的电子版吗? 发信站: BBS 未名空间站 (Sat Sep 13 11:57:56 2008), 转信 experimental and quasi-experimental designs for generalized causal inference ; author William R. Shadish, Thomas D. Cook,Donald T. Campbell 非常感谢!offer双黄包一个。
t*t
3 楼
matlab variable is copy-on-write, so you can just use b=a; clear a; then a is "renamed" to b. very few memory operation is involved in this process.
【在 x****u 的大作中提到】 : How to rename a variable in Matlab using one command without reallocating : memory? : Thanks a lot!