Borrar filtros
Borrar filtros

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

12 visualizaciones (últimos 30 días)
Hector
Hector el 15 de Feb. de 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

Respuestas (2)

Azzi Abdelmalek
Azzi Abdelmalek el 15 de Feb. de 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 el 15 de Feb. de 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 .

Categorías

Más información sobre Genetic Algorithm en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by