Extracting the data using indices

16 次查看(过去 30 天)
Ramkumar D
Ramkumar D 2022-3-14
回答: Vidip Jain 2023-9-27
While training data using nnstart package and saving the model provided the info of the model. In the training set of the model, random selection has been applied and indices are provided in a work sheet. I want to extract the data for the provided indices. Any tool to extarct the data using indices?

回答(1 个)

Vidip Jain
Vidip Jain 2023-9-27
I understand that you want to extract data by using provided indices.
There are a few ways to extract data from a MATLAB training set using indices. One way is to use the ‘subset()’ function. The ‘subset()’ function takes a training set and a vector of indices as input and returns a new training set containing the data at the specified indices.
Another way to extract data from a MATLAB training set using indices is to use the linear indexing syntax. Linear indexing allows you to access individual elements of a matrix using a single index.
For further information, refer to the documentation links below:

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by