필터 지우기
필터 지우기

I wonder how to plot complex function

조회 수: 1 (최근 30일)
Jae Yoon Kim
Jae Yoon Kim 2018년 9월 24일
편집: Jae Yoon Kim 2018년 10월 5일
I want to know how to find and sketch the image of complex functions.

답변 (1개)

Zenin Easa Panthakkalakath
Zenin Easa Panthakkalakath 2018년 9월 27일
Have a look at the following code:
f = @(z) 2/(z-1); %defining the function f
z = linspace(-10,10,1000); %1000 evenly spaced points between -10 and 10
z = z.*(z-2<1); % z-2<1
plot(z,arrayfun(f,z));
  댓글 수: 1
Zenin Easa Panthakkalakath
Zenin Easa Panthakkalakath 2018년 9월 28일
Try something like this:
f = @(z) 2/(z-1); %defining the function f
z = linspace(1-i,3+i,10);
z = z.*(abs(z-2)<1) % z-2<1
f_val = arrayfun(f,z);
plot(f_val);

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by