I am trying to run a for loop where I call a 'caculate' function on each element of an array, and then save each new calculated variable to a new array that has 1 column and 9 rows.
newNums = cell(9,1)
for num = numbers
newNum = calculate(num);
newNums([num]) = newNum;
Apologies for my code I am brand new to matlab and usually use Python!