Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
MATLAB for Machine Learning

You're reading from  MATLAB for Machine Learning

Product type Book
Published in Aug 2017
Publisher Packt
ISBN-13 9781788398435
Pages 382 pages
Edition 1st Edition
Languages
Authors (2):
Giuseppe Ciaburro Giuseppe Ciaburro
Profile icon Giuseppe Ciaburro
Pavan Kumar Kolluru Pavan Kumar Kolluru
Profile icon Pavan Kumar Kolluru
View More author details
Toc

Table of Contents (17) Chapters close

Title Page
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
1. Getting Started with MATLAB Machine Learning 2. Importing and Organizing Data in MATLAB 3. From Data to Knowledge Discovery 4. Finding Relationships between Variables - Regression Techniques 5. Pattern Recognition through Classification Algorithms 6. Identifying Groups of Data Using Clustering Methods 7. Simulation of Human Thinking - Artificial Neural Networks 8. Improving the Performance of the Machine Learning Model - Dimensionality Reduction 9. Machine Learning in Practice

Data organization


So far, for data organization, we have mostly used standard arrays that represent useful data structures for storing a large number of objects, but all of the same type, such as a matrix of numbers or characters. However, such arrays cannot be used if you want to memorize both numbers and strings in the same object. This is a problem that can be solved by so-called cell arrays, structure arrays, and more generally all those structures that the MATLAB programming environment provides us.

Cell array

A cell array is a datatype that has indexed data containers called cells. Each cell can contain any type of data; cell arrays can contain, for example, text strings, combinations of text and numbers, or numeric arrays of different sizes.

To create a cell array, we can simply use the cell array construction operator, that is, the {} operator (braces), we can see as (name and age of my family members):

>> MyFamily = {'Luigi', 'Simone', 'Tiziana'; 13, 11, 43}
MyFamily =
  2×3 cell...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime