使用angle函数求复数矩阵相位时出现索引错误。

I_row=ifft2(ifftshift(filtFTS_row));
A1=angle(I_row);
使用傅里叶变换后生成复数矩阵,求复数矩阵时,在第一次循环后会出现“数组索引必须为正整数或逻辑值的错误”’,第一次循环则没有问题,尝试了在循环末尾添加clear A1,但是没有用。求大佬解答。

 Réponse acceptée

rabaiiri
rabaiiri le 17 Mai 2023

0 votes

请不要只发部分代码,你至少得提供 filtFTS_row 这个变量的部分数据让别人能复现你的问题。
另外你就没检查过你前面代码是不是已经把 angle 定义成一个变量、导致同名函数无非被正常调用了吗?

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!