clear all;clc;close all;
[email protected](x)-x.*log(x);
s=integral(f,1,2);
x=0:0.001:1;
y=f(x);
plot(x,y,'Linewidth',2);grid on;
xlabel('x');ylabel('p');
hold on;
p=find(y==max(y));
%text(x(p),y(p),'*','color','r','linewidth',9);
text(x(p),y(p),['(',num2str(x(p)),',',num2str(y(p)),')'],'color','r');

matlab 画图并标注

相关文章:

  • 2021-05-24
  • 2022-03-08
  • 2021-12-02
  • 2021-10-28
  • 2021-12-03
  • 2021-11-21
猜你喜欢
  • 2022-01-07
  • 2021-04-04
  • 2021-08-29
  • 2022-02-08
相关资源
相似解决方案