Hi,

I'm working on multiplying matrices for homework and I'm stuck for a long time. This is my assignment:

{x}(n+1) = [K] {x}(n), n = 0,1,2, ... ,8,9.

In other words, the next vector {x} is equal to the product of [K] and

the current vector {x}.

I have the basic program already but I couldn't get it to multiply the current matrix. Instead, it would only multiply the initial matrix.

Part I'm stuck on:

K and x are the matrices I have to multiply together (they're already defined), y is the resulting matrix. I don't know how to make it so that the program will take K*y next instead of K*x(0). Please help?Code:for(n=1; n<=10; n++) { printf("\nNew Vector:\n"); printf("y[%d] : [", n); matrix_mult(K, x, y, 4); printf(" ]\n"); }