简体   繁体   English

Matlab中的示例数据集

[英]Example data sets in Matlab

There are several example data sets in Matlab, for example wind and mri . Matlab中有几个示例数据集,例如windmri If you execute the command load wind you will load the data in the data set wind . 如果执行命令load wind ,则将加载数据集wind中的数据。 Some are included in toolboxes and some appear to be included in standard Matlab. 有些包含在工具箱中,有些似乎包含在标准的Matlab中。 These example data sets are valuable as test data when developing algorithms. 在开发算法时,这些示例数据集作为测试数据很有价值。

Where can one find a list of all such data sets included in Matlab? 在哪里可以找到Matlab中包含的所有这些数据集的列表?

You can enter demo in matlab to get a list. 您可以在matlab中输入demo来获取列表。 The wind table is part of Example — Stream Line Plots of Vector Data , etc. 风表是Example — Stream Line Plots of Vector Data一部分Example — Stream Line Plots of Vector Data等。

For the tables on your computer, have a look at: 对于计算机上的表格,请查看:

C:\Program Files\MATLAB\R2007b\toolbox\matlab\demos

The example data is located in .mat files in ../toolbox/matlab/demos . 示例数据位于../toolbox/matlab/demos中的.mat文件中。 The following data is available in MATLAB 2014a : MATLAB 2014a提供了以下数据:

% in matlab run:
> H=what('demos')
> display(H.mat)

You can also use your favorite Linux console: 您还可以使用自己喜欢的Linux控制台:

/usr/local/MATLAB/R2014a/toolbox/matlab/demos$ ls *.mat -1 | sed -e "s/.mat//g"

This is my list for readers who can not try it on their machine while reading this answer: 这是我的列表,供读者在阅读此答案时无法在自己的机器上试用:

accidents
airfoil
cape
census
clown
detail
dmbanner
durer
earth
flujet
gatlin
gatlin2
integersignal
logo
mandrill
membrane
mri
patients
penny
quake
seamount
spine
stocks
tetmesh
topo
topography
trimesh2d
trimesh3d
truss
usapolygon
usborder
vibesdat
west0479
wind
xpmndrll

While the command demo in MATLAB 2018b will start a help browser with some demos: 虽然MATLAB 2018b中的命令demo将启动带有一些演示的帮助浏览器: 在matlab 2018b中帮助演示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM