Trying to write a for loop that moves through an array with 2 columns and 15 rows. The code i've written just provides the same results 15 times for the 1st cells of the array. i'm guessing i need to nest it somehow but i have no idea, a few clues on where i'm wrong would be great
X = Var1; Y = Var2; Z = 29;TableCreate = table(X,Y);Array = table2array(TableCreate);for N = 1:length(Array) A = (Array(1,1)*Z)/Array(1,2); disp (A)end
Best Answer