So I have this matrix A = [1.9, 0.025; 0.1, 1.225];
And I want to multiply it with the vector v = [1;0];
I want to plot the sum of it up to 25 iteration, so I have a for loop and I use the sum function like this:
iter = 25;
v = [1;0];
for k = 1:iter
s(k) = sum(A^k*v);
hold on
plot(k,s(k))
end
But the plot shows up empty, how would I go about doing this? This is for general understanding of plots with matrices and arrays and for loops, not really a school assignment.

you are multiplying a 2*2 Matrix A with a 2*1 vector and then you are summing up the values of the resulting vector, so you have a scalar.
What do you expect to see when you plot a single Point? A BIG DOT? then you must wait Long..