I'm trying to use a for loop to create a 7×8 matrix that increases by 4 for each number (starting at 1).
So far I have something that goes
for k = 1:8 a(k)=4*k;end
just to create the first row… how would I go about adding more rows that keep adding increasing elements?
Best Answer