필터 지우기
필터 지우기

Error in function 'quiver' during rectangular waveguide design

조회 수: 1 (최근 30일)
건희 이
건희 이 2022년 4월 11일
답변: Walter Roberson 2022년 4월 11일
Error occurred in function quiver of the following code. I think it's because of a variable that has a value of zero. Is there a solution?
Note : The error message on the right is "Error occurred during use: quiver (Line 58) U and V must be the same size.
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2022년 4월 11일
Please share the code {code format} not an image?
Geoff Hayes
Geoff Hayes 2022년 4월 11일
@건희 이 - according to the error message,
U and V must be the same size.
I think this is because the real(Ex) is a scalar (1x1) due to
Ex = 0
whereas real(Ey) is an array (because x is an array). You may want to review the documentation for quiver to get an idea of what U and V should be.

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

답변 (1개)

Walter Roberson
Walter Roberson 2022년 4월 11일
Ex = zeros(size(Ey)) ;

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by