wupengda

clear
clc
t=0:0.1:2*pi;
x=sin(t);
y=cos(t);
z=x+i*y;
subplot(1,3,1)
plot(t,z,\'r\') %注:这种方式下,不论参数t,z哪个是复数,都将忽略虚部数据,只绘制实部数据,其用法和绘制一般实数数据相同
title(\'plot(t,z)复数图形\');
grid on
subplot(1,3,2)
plot(z,\'b\')
title(\'plot(z)复数图形\');
grid on
x1=0:0.01:5;
y1=exp(x1);
subplot(1,3,3)
plotyy(x1,y1,x1,y1,\'semilogy\',\'plot\')
title(\'双y轴图形\');
grid on

分类:

技术点:

相关文章:

  • 2021-11-28
  • 2021-04-24
  • 2021-12-08
  • 2022-12-23
  • 2021-05-31
  • 2021-08-08
猜你喜欢
  • 2021-08-06
  • 2021-11-28
  • 2021-08-26
  • 2021-08-03
  • 2021-12-11
相关资源
相似解决方案