Is there a command to do the opposite to "load"?
16 次查看(过去 30 天)
显示 更早的评论
hello, I have a configuration problem in matlab. The situation is as follows: I perform several simulations with different parameters and store the respective result.
when loading the results use the "load" command to load the different results. The problem is that the internal variables results have the same name, even if the file is called differently.
Is there a command to do the opposite to "load"?. This in order to load and unload multiple results within a single simulation.
appreciate the help you can give me
0 个评论
回答(2 个)
Azzi Abdelmalek
2013-2-15
Instead of
load filename
Use
data=load('filename') % the only variable loaded is a struct variable data
If your file contains the variables x,y and z for example
to get those varables, you can change their names
x1=data.x
y1=data.y
z1=data.z
0 个评论
Youssef Khmou
2013-2-15
i think you can :
1) Name differently the variables , like the first load data(m1,v1...) the second load data2(m2,v2,...) or :
2) When you finish with the first file, use "clear" to delete the variables , and load the next file .
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!