Ben Trumbore, Brandon Barker, Nate Woody (original)
Cornell Center for Advanced Computing

Revisions: 8/2023, 8/2020, 3/2011 (original)

Most MATLAB tutorials will do a good job of covering basic aspects of the language and its use. However, they often do not include information about some of its more advanced features or insight into side effects and "gotchas" that can trip up your programming efforts.

This topic includes pages devoted to such topics, ranging from tips on handy techniques to introductions to less-common functionality.

Objectives

After you complete this segment, you should be able to:

  • Understand how to get started using MATLAB on the computing resources at Texas Advanced Computing Center (TACC).
  • Understand some advantages of using Graphical Processing Units (GPUs) with MATLAB and of using MATLAB remotely.
  • Be aware of the perils of MATLAB's weak typing and the way MATLAB allows functions to be overloaded.
  • Explain the benefits and use of cell and struct arrays.
  • Explain the benefits and procedures for passing functions as arguments to other functions.
  • Explain how to use the varargin parameter to pass a variable number of arguments to functions.
  • Understand the basics of these advanced plotting techniques: composite plots and 3D surface plots.
Prerequisites

Before reading this topic, you should:

 
©   Cornell University  |  Center for Advanced Computing  |  Copyright Statement  |  Inclusivity Statement