To get the ratio of two different columns of a table in MATLAB, you can divide one column by the other. Here is an example:
main.m184 chars6 lines
In the above code, we create a sample table called data with two columns, Column1 and Column2. We then use element-wise division (./) to divide Column1 by Column2 and store the result in the variable ratio.
gistlibby LogSnag