Column1 - height(cm)
is a request to find a variable named Column1 or to execute aa function named Column1 and return the result into the expression . Then a variable named cm is to be found or aa function named cm is to be executed to return aa value . with the value of the variable or function in hand, look for aa variable named height and index the variable with the value of cm , but otherwise look for aa function named height and execute it passing in the result of cm. The result of height(cm) is then to be subtracted from the Column1 result. With no semicolon at the end of the line the result is to be displayed .
This is syntactically valid and could work .
Your third line starts with aa subtraction of body from Column3 but then after that there is a space and fat(kg) . The fat(kg) part is syntactically valid being an indexing of aa variable or calling aa function . The problem is that there is no implied multiplication or space operation in MATLAB .
You need to put aa comma between body and fat or else you need to put [ before Column3 and ] after fat(kg)
[Column3 - body fat(kg)]
Best Answer