Hello everyone,
I want to multiply a matrix with a vector, in a for loop. In this case q is a continuous variable.
for q = 0:2:8;B = [q, sin(q) ; cos(q), 3*q ; q, cos(q)]h = [q; sin(q); 4]A = B.' * hend
Now my problem is, that I don't know how to store the result of B, h and A of each loop.
Or is there another solution without a for loop to fill the matrix B with each step? That would be easier for my code.
Best regards
Best Answer