필터 지우기
필터 지우기

Dot indexing is not supported for variables of this type.

조회 수: 1 (최근 30일)
Tosin
Tosin 2023년 5월 11일
답변: Image Analyst 2023년 5월 11일
Dot indexing is not supported for variables of this type.
Error in final (line 20)
O=fft2(o,N256,N256); PHI_o=O. conj(O);
  댓글 수: 1
Rik
Rik 2023년 5월 11일
What is your question? Why did you expect this code to work? What did you want to do?

댓글을 달려면 로그인하십시오.

답변 (2개)

Chunru
Chunru 2023년 5월 11일
% avoid use variable such as o and O
x = rand(256, 236);
y = fft2(x,256,256);
% assume that you are computing the power
p = y.* conj(y);
% alternatively
% p = abs(y).^2;

Image Analyst
Image Analyst 2023년 5월 11일
You have
PHI_o=O. conj(O);
So, because there is a dot after O you're telling MATLAB that the (poorly named) "O" is a structure or class. It may be -- we have no idea because you didn't tell us how you instantiated O. But you can't have a space after the dot, and that is what you have so it threw the error. Perhaps you meant to have no space
PHI_o = O.conj(O);

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by