Reformat a matrix based on common column
显示 更早的评论
Below is my 140*142 matrix. All odd columns (1,3,5...) are fixed code numbers for different systems. All even columns (2,4,6..) are time (durations) for each system. So for every value of an odd column (for example 1) there are 70 values. I want to remove all odd columns and just keep one column for fixed codes. and 70 columns for durations. My new matrix should be 140*72 shape. Any easy way to handle this problem in MATLAB?
New matrix
Fixed codes | dur 1 | dur 2|.... |dur 71
-15536 a b .. c
.
.
.
1001 x y .. z

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!