Giter VIP home page Giter VIP logo

Comments (5)

imagejan avatar imagejan commented on September 4, 2024

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.

from knime-scripting.

fmeyenhofer avatar fmeyenhofer commented on September 4, 2024

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.

from knime-scripting.

fmeyenhofer avatar fmeyenhofer commented on September 4, 2024

cd39a46

from knime-scripting.

stelfrich avatar stelfrich commented on September 4, 2024

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! ๐Ÿ‘

from knime-scripting.

fmeyenhofer avatar fmeyenhofer commented on September 4, 2024

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.

screen shot 2018-07-06 at 12 21 12

from knime-scripting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.