################################

 

二维火柴图stem

 

 

案例一:自变量从1到length(y)

>> x=linspace(0.1,6,50);
>> stem(sin(x))

 

二维火柴图stem

 

 二维火柴图stem

 

 

 

案例二:指定自变量:

>> x=linspace(0.1,6,100);
>> stem(x,sin(x))

 

二维火柴图stem

 

 二维火柴图stem

 

 

 

案例三:结合plot图可表示定积分中的面积:

>> x=linspace(0.1,10,50);
>> plot(x,log(x),'-ok')
>> hold on;
>> stem(x,log(x));

 

二维火柴图stem

 

 

 案例四:针状图填充:

 

 二维火柴图stem

 

 

 二维火柴图stem

 

 二维火柴图stem

 

 

 案例五:

 

二维火柴图stem

 

 

 

 

 

 

 

 

 

 

 

######################################

相关文章:

  • 2021-12-06
  • 2021-08-07
  • 2021-10-23
  • 2022-01-09
  • 2021-09-02
  • 2021-07-01
猜你喜欢
  • 2021-10-14
  • 2022-12-23
  • 2022-01-02
  • 2021-08-31
  • 2021-06-28
  • 2021-12-07
  • 2021-05-31
相关资源
相似解决方案