Data Acquisition Toolbox    
load

Load device objects, channels, or lines into the MATLAB workspace

Syntax

Arguments

file
The MAT-file name.
obj1 obj2...
Device objects, an array of device objects, channels, or lines.
out
A structure containing the loaded device objects.

Description

load file returns all variables from the MAT-file file into the MATLAB workspace.

load file obj1 obj2... returns the specified device objects from the MAT-file file into the MATLAB workspace.

out = load('file','obj1','obj2',...) returns the specified device objects from the MAT-file file as a structure to out instead of directly loading them into the workspace. The field names in out match the names of the loaded device objects. If no device objects are specified, then all variables existing in the MAT-file are loaded.

Remarks

Loading device objects follows these rules:

If you use the help command to display the M-file help for load, then you must supply the pathname shown below.

Example

This example illustrates the behavior of load when the loaded device object has properties that differ from the workspace object.

See Also

Functions

daqread, propinfo, save


  length makenames