I wonder how to plot complex function
1 次查看(过去 30 天)
显示 更早的评论
I want to know how to find and sketch the image of complex functions.
0 个评论
回答(1 个)
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
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 Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!