How to get missing functions in Matlab 2018b about table and timetable operations?
Show older comments
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
Walter Roberson
on 10 Feb 2020
Those should be part of basic MATLAB from R2018a onwards, provided that the first parameter to the function is a table .
Try using
restoredefaultpath
rehashtoolboxcache
If that does not work, please show us the error message from trying to use them.
Luna
on 10 Feb 2020
Walter Roberson
on 10 Feb 2020
The prediction code does not search for all method names of all data types: it saves resources by only looking at the methods of variables that are present.
(It might not work exactly that way. If you experiment with "which" then you will see that "which" does not know the name of any method of a datatype that has not been loaded yet this session, not until the class definition has been parsed and loaded into memory once (and not yet removed with "clear all")
Luna
on 10 Feb 2020
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)
Luna
on 11 Feb 2020
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!