how to change matrix dimensions?
显示 更早的评论
hi all
how can i change the matrix dimension from 312*1 to 276*1
thank you
4 个评论
Mahdi
2014-5-23
What do you want to do with the values that you're cutting out from the first matrix? Do you want to remove the first 36 values? the last 36 values?
lina
2014-5-23
Mahdi
2014-5-23
Do you know which index that the year 2006 corresponds to in the second matrix? (Where does the data stop for 2006?) Similarly, does your matrix tell you which year corresponds to which data point?
lina
2014-5-23
采纳的回答
更多回答(1 个)
Image Analyst
2014-5-23
1 个投票
Try interp2() or (much, much easier) try imresize() if you have the Image Processing Toolbox.
类别
在 帮助中心 和 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!