matlab preloaded 'load' files

8 ビュー (過去 30 日間)
Raviteja
Raviteja 2011 年 9 月 17 日
matlab consist some preloaded load files for example
>>load cities
>>load hald
>>load moore
I want to know all other "load" files which are already included in matlab. Where I can find these list ?
  2 件のコメント
TAB
TAB 2011 年 9 月 17 日
What do you mean by .mat file 'included' in matlab?
Matlab loads the .mat files on workspace. After loading .mat file only its contains ie data and variables are visible in workspace.
Raviteja
Raviteja 2011 年 9 月 17 日
I changed the question...

サインインしてコメントする。

回答 (2 件)

TAB
TAB 2011 年 9 月 17 日
I don't think any such method exist.
Once loaded by 'load', matlab extracts the variables from .mat file and saves in workspace. There is no info of .mat files in workspace.
If you have multiple .mat files, and want to check that a workspace variable exist in which mat file you can use 'who'.
who(variable_list,'-file','mat_filename')
it will list the variables if they exists in mat file.
Example:
lst=who('m','x','-file','D:\WORKING\MyMat.mat')
>> lst =
'm'
This means that 'm' exist in MyMat.mat and 'x' doesn't exist.

Joan Puig
Joan Puig 2011 年 9 月 17 日
Hi,
The list depends on which toolboxes you have.
You could try to search the MATLAB directory and subdirectories for *.mat.
For example, cities.mat appears in the toolbox\stats directory.
Joan

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by