Filter löschen
Filter löschen

Is there a command to do the opposite to "load"?

11 Ansichten (letzte 30 Tage)
Hector
Hector am 15 Feb. 2013
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

Antworten (2)

Azzi Abdelmalek
Azzi Abdelmalek am 15 Feb. 2013
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

Youssef  Khmou
Youssef Khmou am 15 Feb. 2013
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 .

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by