MATLAB Answers

How to get missing functions in Matlab 2018b about table and timetable operations?

8 views (last 30 days)
Luna
Luna on 10 Feb 2020
Answered: Walter Roberson on 19 Feb 2020
Hello dear community!
I have just realized that the functions below listed do not exist in my Matlab 2018b version with all toolboxes installed. Those functions are supposed be introduced in 2018a in the documentation.
  • addvars
  • splitvars
  • mergevars
  • movevars
  • removevars
How can I use those functions? Do you have any ideas? Is my Matlab installed wrongly?

  6 Comments

Show 3 older comments
Luna
Luna on 10 Feb 2020
OK, now I understand and that makes sense.
There is a still weird situation here. When I call that function without a table input, it gives the below error which does not make sense actually. I should have expected another error rather than "this function does not exist" to understand what I am missing or doing wrong etc...
>> addvars
Undefined function or variable 'addvars'.
This exception made me think that "addvars" does not exist in my Matlab version.
Walter Roberson
Walter Roberson on 10 Feb 2020
addvars is a method not a general function. It is only defined for a few classes. MATLAB does not search all methods of all classes: at most it only includes methods of classes that have been parsed during the current session (and have not been cleared)

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 19 Feb 2020
The needed functions are present in r2018a, but were not showing up in the pop-up help because the pop-up help can only pop up for classes that MATLAB has parsed in this session.

  0 Comments

Sign in to comment.

More Answers (0)

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!