table linear indexing error
Show older comments
Why am I getting an error when trying to linear index into my table?
>> load patients
>> T = table(Gender,Smoker,Height,Weight);
>> T(:,4)(T.Smoker==1)
Error: ()-indexing must appear last in an index expression.
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing 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!