Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Undefined function 'table' for input arguments of type 'double'.

Tags:
  1. Jun 14, 2014 #1
    Hi!

    Using Matlab R2012a:

    typing this example to create a table:

    t = [0 .3 .8 1.1 1.6 2.3]';
    y = [.82 .72 .63 .60 .55 .50]';
    B = table(t,y)

    Getting this error:


    Undefined function 'table' for input arguments of type 'double'.

    Don't know what to do..

    Edit:

    another example:

    >> Age = [38;43;38;40;49];
    Height = [71;69;64;67;64];
    Weight = [176;163;131;133;119];
    BloodPressure = [124 93; 109 77; 125 83; 117 75; 122 80];
    >> T = table(Age,Height,Weight,BloodPressure)
    Undefined function 'table' for input arguments of type 'double'.

    Edit2: If I convert to single:
    Undefined function 'table' for input arguments of type 'single'.

    -_-
     
    Last edited: Jun 14, 2014
  2. jcsd
  3. Jun 15, 2014 #2

    kreil

    User Avatar
    Gold Member

    A simple problem with a simple solution. Tables are in R2013b+, so you can't use them in R2012a. You'll have to get a newer version of MATLAB to use them (you can get a student version for just $50).
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook