Dear Experts,
I have a table with mixed data types. I try to remove duplicate rows according to column 1 (string) and column 2 (integer).
ie Inputs: Table X:Ticker Date PriceAAPL 20160201 100IBM 20160202 20.1AAPL 20160202 90AAPL 20160201 200Desired outputTicker Date PriceAAPL 20160201 200AAPL 20160202 90IBM 20160202 20.1
My code
[~,b] = unique(X(:,[1 2]), 'rows');tmp = X(b,:);
but I have this error.
Error using cell/unique (line 85) Input A must be a cell array of strings.
Error in pre_process (line 12)
Thanks
Best Answer