matlab的reshape函数
时间: 2023-10-23 16:33:48 浏览: 108
MATLAB的reshape函数是用来对数组进行整形的。reshape函数的语法为 A = reshape(A,m,n) 或者 A = reshape(A,[m,n]),其中A是待整形的数组,m是新数组的行数,n是新数组的列数。reshape函数按照列的顺序取数据进行转换。如果新数组的元素个数大于原数组的元素个数,则多出来的元素将会被填充为零或空白。如果新数组的元素个数小于原数组的元素个数,则会对原数组进行截断。在字符数组中,截断的部分会用空格进行填充。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [reshape0,使用填充或截断进行整形:用于使用填充或截断进行整形的 c-mex 例程-matlab开发](https://download.csdn.net/download/weixin_38676216/19309408)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [matlab中reshape 函数](https://blog.csdn.net/sinat_28442665/article/details/83273372)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [MATLAB reshape()函数](https://blog.csdn.net/weixin_42666707/article/details/104312134)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文