Equivalent command in version R2017a for loading iris dataset

37 ビュー (過去 30 日間)
Marimuthu Ananthavelu
Marimuthu Ananthavelu 2017 年 5 月 12 日
編集済み: John D'Errico 2022 年 5 月 25 日
load iris.dat
is the command which was used for loading the iris dataset.
Using the same command in the recent version R2017A gives me the following error;
Error using load
Unable to read file 'iris.dat'. No such file or directory.
Error in example_SOM_Iris (line 7)
load iris.dat
Also,using ,
load fisheriris.mat
does not help. Any idea?

採用された回答

Steven Lord
Steven Lord 2017 年 5 月 12 日
iris.dat:
It appears this data file is included in Fuzzy Logic Toolbox for use in one of its examples, specifically this example. If you do not have Fuzzy Logic Toolbox installed, you will not have this data set installed.
fisheriris.mat:
Used by examples in Statistics and Machine Learning Toolbox, 14 different examples according to the search results. Again, if you do not have Statistics and Machine Learning Toolbox installed, you will not have this data set installed.
To see what products you have installed, use the ver function.
Broadening the search to examples in all products for the term "iris", it appears that Image Acquisition Toolbox and Neural Network Toolbox also have examples that use iris data. Since you or someone tagged this with the Neural Network Toolbox product, I suspect you want to run this example. That example uses the command x = iris_dataset; to read in its data.
  3 件のコメント
safayat hossain
safayat hossain 2021 年 6 月 28 日
unable to read file 'iris.mat'. NO such file or directory.
How to solve this issue?
John D'Errico
John D'Errico 2022 年 5 月 25 日
編集済み: John D'Errico 2022 年 5 月 25 日
@safayat hossain, If you have the stats toolbox, it will be found in the form of fisheriris.mat. That is:
iris = load('fisheriris.mat')
iris = struct with fields:
species: {150×1 cell} meas: [150×4 double]

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

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 5 月 12 日
iris.dat is part of the Fuzzy Logic Toolbox. You probably do not have that installed.

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by