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

Click For Summary
SUMMARY

The error "Undefined function 'table' for input arguments of type 'double'" occurs in MATLAB R2012a because the 'table' function was introduced in MATLAB R2013b. Users attempting to create tables in R2012a will encounter this issue regardless of data type, including 'double' and 'single'. The definitive solution is to upgrade to MATLAB R2013b or later, with student versions available for approximately $50.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of data types in MATLAB, specifically 'double' and 'single'
  • Knowledge of MATLAB versioning and feature updates
  • Basic skills in data organization and manipulation in MATLAB
NEXT STEPS
  • Upgrade to MATLAB R2013b or later to access the 'table' function
  • Explore MATLAB documentation on data types and their compatibility with functions
  • Learn about new features introduced in MATLAB R2013b
  • Investigate alternative data structures in MATLAB R2012a for organizing data
USEFUL FOR

MATLAB users, data analysts, and students working with data organization who are currently using MATLAB R2012a and need to utilize table functionalities.

Waxterzz
Messages
82
Reaction score
0
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:
Physics news on Phys.org
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).
 

Similar threads

Replies
4
Views
17K
  • · Replies 5 ·
Replies
5
Views
9K
  • · Replies 2 ·
Replies
2
Views
148K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
3
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
22K
  • · Replies 1 ·
Replies
1
Views
3K