Repeating a function for different values that involves imaginary numbers.
이전 댓글 표시
I am working on getting the output for a function that includes the calculations of imaginary numbers. It works when I have
f=[1000:1000000]
w=2*pi*f
X=0.2/j*w,
However, when I takes Y=1/X, the calculation failsa and I get no output. Sorry if the question is too shallow as I just learning this tool recently.
채택된 답변
추가 답변 (1개)
X is a vector, not a scalar.
The elementwise division of 1 by a vector has to be coded as
1./X
instead of
1/X
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!