dreamsyeah
ezplot 调用函数的形式如下
ezplot( fun);
ezplot( fun, [xmin xmax]);
ezplot( fun, [xmin xmax], figure);

例如:
ezplot(\'sin(x)/x\',[-4*pi 4*pi]);
title(\'Plot of sinx/x\');
grid on;

函数fplot 与ezplot 相类似,但更加精确。前两个参数与函数ezplot 中的相同,但是函
数fplot 还有其他优点。
1. 函数fplot 是适应性的,它意味着在自变量范围内函数突然变化显示更多的点。
2. 函数fplot 支持TEX 命令,用来指定坐标图的标题和坐标轴标签,而函数ezplot 则不
能。
在一般情况下,在画函数图象时,你应当使用函数fplot。

fplot(\'sin(x)/x\',[-4*pi 4*pi]);
title(\'Plot of sinx/x\');
grid on;
------------------------------------------------------------------------------

标准的MATLAB 柱状图函数应为hist。函数的形式如下:
hist (y)
hist(y, nbins)
hist(y, x);
[n, xout] =hist(y, ...)


如:
y = randn(500, 1);
hist(y, 15);

分类:

技术点:

相关文章:

  • 2021-12-28
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-25
  • 2021-08-03
  • 2021-11-07
  • 2021-11-29
相关资源
相似解决方案