MLAppendMatrix
Create or append MATLAB matrix with data from Microsoft Excel worksheet
Syntax
Description
Examples
Input Arguments
Output Arguments
Tips
MLAppendMatrix
checks the dimensions ofvar_name
andmdat
to determine how to appendmdat
tovar_name
. If the dimensions allow appendingmdat
as either new rows or new columns, it appendsmdat
tovar_name
as new rows. If the dimensions do not match, the function returns an error.If
mdat
is not initially an Excel®Range
data type and you call the function from a worksheet,MLAppendMatrix
performs the necessary type coercion.If
mdat
is not an ExcelRange
data type and you call the function from within a Microsoft® Visual Basic® macro, the call fails. The error messageByRef Argument Type Mismatch
appears.To work with VBA code in Excel with Spreadsheet Link™, you must enable Spreadsheet Link as a reference in the Microsoft Visual Basic Editor. For details, see Installation.
Version History
Introduced before R2006a