How to get sample datasets locally? [Documentation error?]
8 次查看(过去 30 天)
显示 更早的评论
Now that documentation is offline by default, it seems that the sample datasets mentioned on this documentation page are no longer available locally, either. As a result, those files can no longer be accessed by the method specified on that page. For example,
load fisheriris.mat
will not find that file.
Is there a way to access those sample datasets without downloading the entire documentation? I hope so!
(At the very least, that documentation page should be updated.)
2 个评论
采纳的回答
Cris LaPierre
2023-7-9
编辑:Cris LaPierre
2023-7-9
Beginning in R2023a, the product documentation is no longer installed by default (see here). The side effect of this is that some example datasets are no longer included with the product install.
This means some example datasets are no longer available by default. You can still access them by either installing the documentation, or by finding an example in the online documentation that uses that file, and then use the 'Open in MATLAB Online' or 'Copy Command' workflows to download that example (along with any associated data files) to a local folder and open it in your MATLAB instance.
Here are 3 examples that use fisheriris.mat
- Specify Variable-Size Arguments for Code Generation
- Interpret Deep Network Predictions on Tabular Data Using LIME
- Code Generation for Nearest Neighbor Searcher
The copy command from one of them is openExample('stats/SpecifyVariableSizedArgumentsForCodeGenerationExample')

Here's a screen shot of what it looks like loading an example that uses the ovariancancer.mat dataset.

If it is a file you use often, consider adding the example folder to your MATLAB Path.
3 个评论
Cris LaPierre
2023-7-9
编辑:Cris LaPierre
2023-7-9
I also have tested in the prerelease (update 2), and the dataset is present, so no need to use the openExample workflow.
>> which fisheriris.mat
C:\Program Files\MATLAB\R2023b\toolbox\stats\statsdata\fisheriris.mat
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Install Products 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!