I have a large table with data (120 column and 200 rows). I have to subtract column 2 (all rows) from column 1 (all rows),
column 3 (all rows) from column 2 (all rows), and so on, until column 120 (all rows). Can I solve this with a loop, how?
Here is my try (note: I'm an absolutley beginner):
variable1(i,1:120)=table(i,1:2:119) - table(i,2:2:120);