小编ELE*_*ANT的帖子

重塑59x16双重成236x4?

如何在MATLAB中重塑矩阵,最好使用reshape

一个简单的矩阵设置:

A = [1 4 7 10; 2 5 8 11; 3 6 9 12]
Run Code Online (Sandbox Code Playgroud)

我想重塑一下

B = [1 4; 2 5; 3 6; 7 10; 8 11; 9 12]
Run Code Online (Sandbox Code Playgroud)

我尝试了很多设置reshape,但我无法弄清楚.

1 2 3 4
5 6 7 8
Run Code Online (Sandbox Code Playgroud)

重塑成

1 2
5 6
3 4
7 8
Run Code Online (Sandbox Code Playgroud)

matlab matrix reshape

3
推荐指数
1
解决办法
72
查看次数

标签 统计

matlab ×1

matrix ×1

reshape ×1