LabKit MATLAB Workbench

reference

FrameworkApp SDK API

labkit.app.project.emptySourceRecords

Create an empty portable source collection.

Syntax

records = labkit.app.project.emptySourceRecords()

Description

Returns a zero-row struct collection with the same durable field shape as labkit.app.project.sourceRecord. App project factories use this value so the first file selection can assign a portable source without exposing or duplicating its field schema.

Outputs

records
Empty column collection of portable source records.

Failure Behavior

None - The function accepts no inputs and returns the canonical empty collection deterministically.

Example

project.inputs.sources = labkit.app.project.emptySourceRecords();
assert(isempty(project.inputs.sources))

Source

This page is generated from the MATLAB help text in +labkit/+app/+project/emptySourceRecords.m.