Object-Oriented MATLAB Programming


Course Number: MTLB-106
Duration: 1 day (6.5 hours)
Format: Live, hands-on

MATLAB Programming Training Overview

This Object-Oriented MATLAB Programming training course teaches students how to create high-quality, maintainable MATLAB programs using the modern object-oriented programming paradigm, replacing the “spaghetti code” too commonly found in beginner-level MATLAB scripts. Students are led from object-oriented design basics to advanced features such as access attributes, encapsulation, property value validations, getter and setter methods, event notification and handling, backward compatibility across MATLAB releases, and run-time performance considerations.

Note: This course can be condensed to a half-day with fewer examples and less hands-on practice. We strongly recommend the full-day version if possible.

Location and Pricing

This course is taught as a private, live online class for teams of 3 or more. All our courses are hands-on, instructor-led, and tailored to fit your group’s goals and needs. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for online corporate training, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Master the fundamentals of object-oriented coding
  • Write MATLAB classes
  • Customize MATLAB class blocks using attributes
  • Understand the differences between, and uses of, handle and value classes
  • Write reusable, maintainable MATLAB classes
  • Use class inheritance to override objects’ functionality and behavior
  • Use class constructs to notify run-time events to subscribed callback listeners
  • Use property validators and accessor methods
  • Explore MATLAB's hidden object-oriented features
  • Understand MATLAB release compatibility and run-time performance tradeoffs

Prerequisites

Attendees should have taken Accelebrate's From MATLAB Scripts to Complete Programs course or have equivalent knowledge. Students should already be comfortable using the MATLAB environment and have some basic programming experience. No prior object-oriented experience is assumed or required for this course. However, familiarity with object-oriented constructs in other programming environments (e.g., C#, C++, Java, or Python) would be helpful.

Outline

Expand All | Collapse All

Introduction to MATLAB OOP
  • Comparing paradigms: OOP vs. procedural programming
  • Importance of OOP for development and maintainability
  • OOP use in MATLAB code
  • Benefits and drawbacks of using MATLAB OOP
  • MATLAB OOP’s historic evolution and future outlook
Programming Object-Oriented MATLAB
  • Components of MATLAB OOP
  • The format of a MATLAB class
  • Offline & run-time inspection of class components
  • Constructor and destructor methods
  • Handle vs. value classes
  • Class packages, folders, files, and attributes
  • Handling accessibility attributes
  • Bypassing property restrictions (carefully!)
  • Dependent (on-the-fly) properties
  • Specifying and validating property types and values
  • Setter and getter methods for property values
Advanced Object-Oriented MATLAB
  • Copying objects (deep/shallow copy)
  • Class inheritance
  • Overloading class components
  • Using static classes
  • Object pooling
  • The singleton design pattern
  • Notifying and listening to events
  • Using enumerated values
  • MATLAB releases compatibility considerations
  • Run-time performance aspects and tradeoffs
Conclusion

Training Materials

All MATLAB training students will receive comprehensive courseware.

Software Requirements

  • Any Windows, Linux, or macOS operating system
  • A recent version of MATLAB


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan