Is there a command to do the opposite to "load"?
조회 수: 11 (최근 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!