Thommer
Junior Member level 1
Hello All!
I have a probably primitive problem, but please help me!
I have a matrix (arbitrary), I want each row of this matrix to be in a separate vector.
eg:
y=[ -1 1 -1 -1
1 -1 1 -1
-1 1 1 -1];
I tried the following:
t = reshape(y',1,[]) ->
[-1 1 -1 -1 1 -1 1 -1 -1 1 1
-1]
then I'm looking for a command that splits this vector into
3 four-long subvectors..
Or is the any other idea how to solve the main problem?
Thank you,
Thommer
I have a probably primitive problem, but please help me!
I have a matrix (arbitrary), I want each row of this matrix to be in a separate vector.
eg:
y=[ -1 1 -1 -1
1 -1 1 -1
-1 1 1 -1];
I tried the following:
t = reshape(y',1,[]) ->
[-1 1 -1 -1 1 -1 1 -1 -1 1 1
-1]
then I'm looking for a command that splits this vector into
3 four-long subvectors..
Or is the any other idea how to solve the main problem?
Thank you,
Thommer