Grid Resolution Change in Matlab
13 次查看(过去 30 天)
显示 更早的评论
If I have a matrix of 10x200x300 double of horizontal resolution 0.25x0.25 (degrees). How can I change the horizontal resolution to 1x1 (degrees) in matlab?
0 个评论
回答(2 个)
Walter Roberson
2020-5-12
编辑:Walter Roberson
2020-5-12
NewGrid = imresize(YourGrid, 1/4);
Each pane will be done independently, so the result would be 3 x 50 x 300
2 个评论
Joydeb Saha
2020-5-13
1 个评论
Walter Roberson
2020-5-13
YourGrid = Name_of_your_data_matrix_goes_here;
Time_Averaged_Grid = squeeze(mean(YourGrid,1));
Time_Averaged_1degree_Grid = imresize(Time_Averaged_Grid, 1/4);
另请参阅
类别
在 Help Center 和 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!