フィルターのクリア

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

11 ビュー (過去 30 日間)
Hector
Hector 2013 年 2 月 15 日
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

回答 (2 件)

Azzi Abdelmalek
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

Youssef  Khmou
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 .

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by