Skip to content
MathWorks

Self-Paced Online Courses

  • Self-Paced Content
  • MathWorks
  • MATLAB Help Center
  • Community
  • Learning
  • Get MATLAB MATLAB
  • Sign In
    • My Account
    • My Community Profile
    • Link License

    • Sign Out
  • Contact MathWorks Support
  • Visit mathworks.com
  • Online Courses
MathWorks MathWorks

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

  • (English)
  • (Deutsch)
  • (Français)
  • (简体中文)
  • (English)

You can also select a web site from the following list

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文
    • English
  • 日本 (日本語)
  • 한국 (한국어)

Contact your local office

image for course Find and Extract Subsets of Data

Find and Extract Subsets of Data

Master logical operators to filter data, count elements, and perform conditional data selection on vectors, matrices, and non-numeric array types.

Course modules

Introduction

Get an overview of the course.

Lessons:
  • Course Overview
  • Learning Outcomes and Prerequisites

Logical Operations and Variables

Create logical variables using logical and relational operations.

Lessons:
  • Relational and Logical Operators
  • Compare Vectors

Work with Logical Vectors

Count true values and find elements in logical variables.

Lessons:
  • Count true Values in a Logical Vector
  • Find the Indices of true Elements

Conditional Data Selection with Vectors

Extract subsets of vectors that satisfy given criteria.

Lessons:
  • Logical Indexing
  • Extract Portions of a Vector Based on a Condition

Logical Operations with Matrices

Create and work with logical matrices using logical and relational operations.

Lessons:
  • Compare Matrices
  • Work with Logical Matrices

Conditional Data Selection with Matrices

Extract subsets of matrices that satisfy given criteria.

Lessons:
  • Row and Column Indexing

Indexed Assignment of Multiple Elements

Modify multiple array elements at the same time using logical indexing.

Lessons:
  • Indexed Assignment with Vectors
  • Indexed Assignment with Matrices

Conditional Data Selection with Nonnumeric Data

Apply logical operations and indexing techniques to other data types like, like string and datetime, in arrays and tables.

Lessons:
  • Logical Comparisons and Indexing with Nonnumeric Vectors
  • Logical Indexing with Tables

Project

Practice what you learned in the course.

Lessons:
  • Find and Analyze Flu Season

Conclusion

Review course concepts, learn next steps, and give feedback on the course.

Lessons:
  • Summary
  • Additional Resources
  • Survey

Format:Self-paced

Language:English

Language

  • Hands-on exercises with automated feedback
  • Access to MATLAB through your web browser
  • Shareable progress report and course certificate

Calculations with Vectors and Matrices

Apply mathematical and statistical operations to vectors and matrices.

  • Trust Center
  • Trademarks
  • Privacy Policy
  • Preventing Piracy
  • Application Status
  • Contact Us

© 1994-2025 The MathWorks, Inc.