MATLAB: Subtracting column values in Matlab tables

matlab function

Hi All, I have a table in matlab with 84 rows and 3 columns. I want to subtract values in column 3 from column 2. How do I do that. Thanks,

Best Answer

YourTable{:,2} - YourTable{:,3}
assuming that they are the same data type.
(EDIT: corrected a minor typo in the first term)