Closed stelfrich closed 6 years ago
How many rows are in your mOut
? I remember similar errors when I tried the MATLAB Snippet node, and I had to provide at least two rows in the output to get it work.
Hey @stelfrich
a workaround is to append the following line to the end of you snippet:
mOut.Properties.VarDescription = {'Septal.length', 'Septal.width', 'Petal.length', 'Petal.width'};
I know, this is not very transparent at the moment, but you can use the VarDescription
property of dataset and table matlab objects to carry the column names of the output table. This is because dataset does not allow white spaces and a couple of other characters.
I am now working on the matlab code that transfers the data to the matlab workspace to make the default behaviour a bit more consistent and add a bit of explanation to the default snippet.
cd39a4639be14e53b366cb454897c91a961846b2
I know, this is not very transparent at the moment, but you can use the VarDescription property of dataset and table matlab objects to carry the column names of the output table. This is because dataset does not allow white spaces and a couple of other characters.
Is it documented somewhere and was I just too stupid to find it? I guess it would make sense to add documentation about that possibility to the node description, even with the fix available.
Thanks for your efforts on this (and I mean knime-scripting
in general not just this fix), @Meyenhofer! 👍
You can find information about the dataset/table properties in the node description (see screenshot). Now with the more consistent behauviour concerning column naming from the matlab output I hope that this will not make anymore trouble.
I am trying to execute MatlabSnippetError.knwf.zip with MATLAB R2018a and KNIME 3.5.3 and get the following error in the KNIME log:
mOut
is available in the MATLAB workspace and filled with the correct content.