MATLAB: How to join matlab datasets with different variable names

join;merge

Dear all,
I would like to join matlab datasets to a single dataset in matlab. The individual datasets have different variables. I tried using the join function however it says Undefined function 'join' for input arguments of type 'double'. The matlab files are datasets containing observation ( numeric values) and variable names.
atajoined = join(time,v100,v40,d40,d90,'Type','rightourer','MergeKeys',true)
Undefined function 'join' for input arguments of type 'double'.

Best Answer

Your variable "time" is not the result of a dataset() call. (Example of join() in documentation)