DataGraph Community
  • Articles
  • Forums
  • News
  • Home

Community Forums

Forums/Product Development/Feedback and Suggestions/Matlab connections

Matlab connections

Matlab
  • 2 years, 7 months ago allen glazner
    Participant

    It would be useful to include a live Matlab data connection like the one for R that was demonstrated in the webinar today.

    2 years, 7 months ago david
    Moderator

    First question.  Do you use the table data structure in matlab?  For example, if you have two columns A = [1:5] and B=A+4, and you want to save a table with these two columns do you use a data structure Table = …. which you want to save with something like

    Table = table(A,B);
    writeDTable(“/tmp/table”,Table)

     

    2 years, 7 months ago allen glazner
    Participant

    I generally do not use tables because they are a little clunky in Matlab, but could.

    2 years, 7 months ago david
    Moderator

    No need to switch to the Table structure. I did some search on what matlab has that corresponds to a dataframe in R.  This structure does not exist in Octave, and I don’t have a matlab license.

    There is a way to export data from a matlab workspace and import it into DataGraph.  Currently, if you have lists A,B in your workspace you should be able to do

    save -v4 outputfile.mat

    and then drag that file into DataGraph to import it.  That however does not allow you the same functionality as the R interface, namely automatic updates, table with varying types etc.

    The .dtable and .dtbin file formats are really just a collection of variables, and a table is broken down into a few lists and labels that have specific names.  So the main question is how you view your data.  For example, if you typically just want to save two columns to a file it will be easy for me to write a function like

    writetable(filename,’column name 1′,data1,’column name 2′,data2)

    The Table structure seemed like a relatively simple data type, too bad that it is clunky and hasn’t been implemented in octave.  That might be related.

    Any concrete cases?  I can make some educated guesses, but a specific use case is always preferrable.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

How to join the community

  • Create your account
  • Edit your Profile
  • Insert images into the forum
  • Forum Notifications
Log In

Search Forums

Recent Topics

  • Multiple mask criteria on columns (or equivalent) by richard brown
    19 hours, 8 minutes ago
  • Panning tool by mr j shawash
    1 day, 16 hours ago
  • Rotating Command Labels by matheus esteves
    2 weeks ago
  • turn off autosave? by _leemiller
    2 weeks, 2 days ago
  • Problem with decimal separator on MacOS in France by ckress
    5 days, 20 hours ago

Our Software

  • DataGraph
  • DataTank
  • ImageTank – New!
  • Create your account
Log In
© Visual Data Tools, Inc.  •  Privacy