- #1
hsong9
- 80
- 1
I need to keep track of the size of the matrix myself.
This means I can't use "size" function.
Is it possible?
For example,
A is a 5 x 5 matrix. I need to create a vector x=[0,0,0,0,0].
It should be just
x = zeros(size(A,1),1); %or length(A)
but I need to check the size of A matrix without size function.
Could anyone give me hints?
Thank you
This means I can't use "size" function.
Is it possible?
For example,
A is a 5 x 5 matrix. I need to create a vector x=[0,0,0,0,0].
It should be just
x = zeros(size(A,1),1); %or length(A)
but I need to check the size of A matrix without size function.
Could anyone give me hints?
Thank you