Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to acces matrix with some rows and columns
1 次查看(过去 30 天)
显示 更早的评论
I have a large matrix and i want to access some rows and columns diagonally whose length varies at each iteration want to check sequence with in those rows and columns first and then have to check values outside those rows and columns but keeping track of main matrix as it is.
for example=A=[1 0 0 3 0 2;0 1 3 0 0 2;0 3 1 0 0 2;1 0 0 2 0 3;2 3 0 0 4 1;2 3 4 5 6 1;4 0 2 3 1 0]
i have to extract matrix like this,which are my cells
cell 1=[1 0;0 1]
cell 2=[1 0;0 2;0 0;4 5]
cell 3=[1 0]
all these are at diagonal now i want to check sequence of numbers with in these cells after that i want to acces the remaining part and check their sequnce in relation to numbers with in cells
[0 3 0 2]
[3 0 0 2]
[0 3 0 2] and so on
i hope someone gets what i really want to do.stuck in it since 2 weeks
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!