"ismember" error with tall arrays
Show older comments
I am using Matlab R2016b version and working with tall arrays. I have created a tall table and have also an in-memory cell array, lets' call it B.
I would like to keep only rows of my tall table where tt.Variable1 is found in the in-memory array B.
Thus, I am using function ismember, which is said to work with tall (https://nl.mathworks.com/help/matlab/import_export/functions-that-support-tall-arrays-a-z.html), quoting from the link: Input A must be a tall array, and input B must be an in-memory array. when I do
- idx= ismember(tt.Variable1, B)==1;
- tt = tt(idx,:);
I get an error: Input A of class tall and input B of class cell must be the same class, unless one is double.
How can I solve this?
SMALL EDIT: For more informatioin:
- class(B)=cell
- class(tt.Variable1)=tall
- classUnderlying(tt.Variable1)=
- 1×4 tall char array
- cell
Accepted Answer
More Answers (0)
Categories
Find more on Tables 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!