matlab中类似e​xcel中row函数​,作用是显示当前元素​的处在的行数。

1.我有一个2000*130的一个矩阵
2.我需要对这个矩阵进程进一步的数据处理
3.我想把这个矩阵中的任意位置的数字,往下6行连同原本位置的数字形成一个1*7的矩阵,,然后对其进行加和
4.不要用循环 谢谢

 Réponse acceptée

tlhogon
tlhogon le 16 Mai 2023

0 votes

find是找到你随机数的行/列位置,然后在此基础上加上下面行的数。
有个BUG就是假设找的数,下面没有够的6行,那就会报错。

Plus de réponses (0)

Catégories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!