This is the expected functionality. MATLAB defaults to using two-dimensional arrays; this function requires single-dimensional arrays.
To work around this issue, configure MATLAB to export single-dimensional arrays by executing this command:
This forces MATLAB to export single dimension arrays instead of two-dimensional when exporting arrays to COM objects:
Note that setting this feature may break COM interaction with Excel, including Excel Link. If you wish to reset the default behavior of MATLAB of passing all data as two-dimensional arrays, execute: