I wonder how to plot complex function

1 visualización (últimos 30 días)
Jae Yoon Kim
Jae Yoon Kim el 24 de Sept. de 2018
Editada: Jae Yoon Kim el 5 de Oct. de 2018
I want to know how to find and sketch the image of complex functions.

Respuestas (1)

Zenin Easa Panthakkalakath
Zenin Easa Panthakkalakath el 27 de Sept. de 2018
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 comentario
Zenin Easa Panthakkalakath
Zenin Easa Panthakkalakath el 28 de Sept. de 2018
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);

Iniciar sesión para comentar.

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by