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 Cells and Structures

Cells and Structures

Organize data of different sizes and types within cell arrays and structure arrays. Use indexing to extract data from cells and structures.

Course modules

Introduction

Overview of the course.

Lessons:
  • Course Overview
  • Learning Outcomes and Prerequisites
  • MATLAB Data Types for Heterogeneous Data

Cell Arrays

Store and access heterogeneous data in cell arrays.

Lessons:
  • What Is a Cell Array?
  • Store Data in a Cell Array
  • Output as a Cell Array
  • How Do You Extract Data from a Cell Array?
  • Extract Data from a Cell Array
  • Remove and Add Data to a Cell Array Using Indexing

Structures

Store and access heterogeneous data in structures and structure arrays.

Lessons:
  • What Kind of Data Can Structures Hold?
  • Structure Construction
  • Create a Structure
  • Structure Arrays
  • Create a Structure Array
  • Extract Data from a Structure

Extract Multiple Elements from Heterogeneous Variables

Access the contents of multiple cells or structure array fields.

Lessons:
  • Index into Multiple Elements of Heterogeneous Variables
  • Extract Multiple Elements from Cell and Structure Arrays
  • Concatenate Comma-Separated Lists Horizontally
  • Concatenate Comma-Separated Lists Vertically
  • Combine Data from a Comma-Separated List

Apply Functions to Cells and Structures

Use cellfun and arrayfun to apply a function to data stored in cell arrays and structure arrays.

Lessons:
  • What Happens When You Apply a Function to a Cell Array?
  • The Functions: cellfun and arrayfun
  • Apply Functions to Arrays
  • Apply Functions to Cell Arrays
  • Use cellfun with Anonymous Functions
  • Apply Functions to Structure Arrays

Convert Between Data Types

Convert between different heterogeneous data types and between homogeneous and heterogeneous arrays.

Lessons:
  • Heterogeneous Data Types
  • Convert Between Data Types
  • Convert Heterogeneous Data

Conclusion

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

MATLAB Onramp

Get started quickly with the basics of MATLAB.

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

© 1994-2025 The MathWorks, Inc.