MATLAB I/O and External Interfaces


Course Number: MTLB-110

Duration: 1 day (6.5 hours)

Format: Live, hands-on

MATLAB I/O Training Overview

This advanced-level MATLAB I/O and External Interfaces training course teaches attendees how to connect MATLAB to a wide variety of external connectors, including COM, Java, C++, .NET, Python, website URLs, disk, I/O, and more.

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.

Objectives

  • Access file data programmatically in MATLAB
  • Access external Java/C++/.NET/COM functionality within MATLAB
  • Use the custom programmatic styling of MS Office documents in MATLAB
  • Manipulate external objects via MATLAB code
  • Use MATLAB’s new C++ and Python interfaces

Prerequisites

Attendees should have taken Accelebrate's Introduction to MATLAB course or have equivalent knowledge. Students must be comfortable using the MATLAB environment and have some basic MATLAB programming experience.

Outline

Expand All | Collapse All

Introduction
MATLAB File I/O
  • High/medium/low level I/O
  • Binary vs. text format
  • Performance considerations and other tradeoffs
Connecting MATLAB to a URL
  • The urlread and webread functions, and their relatives
  • Customizing the underlying network object
  • Using JSON data format
Connecting MATLAB to a COM Server
  • The actxserver function and its relatives
  • Manipulating Microsoft Office documents (Excel, PowerPoint, Word)
  • Enumerations
  • Avoiding COM access pitfalls
Using .NET Objects in MATLAB
  • The import command
  • Implicit data-type conversion
  • Calling .NET functions and processing the returned results
Using Java Objects in MATLAB
  • The javaaddpath function and its relatives
  • Using Java objects within MATLAB
  • Data type conversions
  • Java-MATLAB arrays
  • Static vs. dynamic classpath
  • Attaching MATLAB callbacks to Java events (if time permits)
  • Avoiding Java access pitfalls
Using Python in MATLAB
  • In-process vs. external Python engine
  • Calling Python functions and processing the returned results
Synchronicity
  • MATLAB’s Main Thread and Java/Python/.NET function calls
  • Implications of argument data being passed by value
  • Using Java/.NET/Python threads
Using C++ Code in MATLAB
  • MEX
  • MATLAB’s changed memory access
  • Avoiding MEX access pitfalls
  • The loadlibrary function and its relatives
  • The new import functionality
Conclusion

Training Materials:

All training students will receive comprehensive courseware.

Software Requirements:

  • Any Windows, Linux, or macOS operating system
  • MATLAB 7.0 or later


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