
2个回答
展开全部
clc,clear
all
n=1300:200:2100;%%%%给n赋值
Me=[130,136 140 144 140];%扭矩Me
Ne=[17.7 21.36
24.92 28.65 30.79];%功率
ge=[247
245 240 248 242];%燃油消耗率
tr=[463
460 500 518 526];%排气温度
%% 画随转速n变化的曲线
subplot(421)
h1=plot(n,tr,n,tr,'+');
set(gca,'XLim',[1200
2200]);%X轴的数据显示范围
set(gca,'XTickLabel',[1300:200:2300]);%给坐标加标签
ylabel('tr\℃'); ylim([460,530])
set(h1,'LineWidth',2)
subplot(423)
h3=plot(n,ge,n,ge,'+');
set(gca,'XLim',[1200
2200]);%X轴的数据显示范围
set(gca,'XTickLabel',[1300:200:2300]);%给坐标加标签
set(h3,'LineWidth',2)
subplot(425)
h5=plot(n,Ne,n,Ne,'+');
set(gca,'XLim',[1200
2200]);%X轴的数据显示范围
set(gca,'XTickLabel',[1300:200:2300]);%给坐标加标签
set(h5,'LineWidth',2)
;ylim([15,32]);
subplot(427)
h7=plot(n,Me,n,Me,'+');
set(gca,'XLim',[1200
2200]);%X轴的数据显示范围
set(gca,'XTickLabel',[1300:200:2300]);%给坐标加标签
set(h7,'LineWidth',2)
%% 画随功率Ne变化的曲线
subplot(422)
h2=plot(Ne,tr,Ne,tr,'+');
%
set(gca,'XLim',[15 35]);%X轴的数据显示范围
%
set(gca,'XTickLabel',[15:5:35]);%给坐标加标签
ylabel('tr\℃'); ylim([460,530])
set(h2,'LineWidth',2)
subplot(424)
h4=plot(Ne,ge,Ne,ge,'+');
set(h4,'LineWidth',2)
subplot(426)
h6=plot(Ne,n,Ne,n,'+');
set(h6,'LineWidth',2)
subplot(428)
h8=plot(Ne,Me,Ne,Me,'+');
set(h8,'LineWidth',2)
all
n=1300:200:2100;%%%%给n赋值
Me=[130,136 140 144 140];%扭矩Me
Ne=[17.7 21.36
24.92 28.65 30.79];%功率
ge=[247
245 240 248 242];%燃油消耗率
tr=[463
460 500 518 526];%排气温度
%% 画随转速n变化的曲线
subplot(421)
h1=plot(n,tr,n,tr,'+');
set(gca,'XLim',[1200
2200]);%X轴的数据显示范围
set(gca,'XTickLabel',[1300:200:2300]);%给坐标加标签
ylabel('tr\℃'); ylim([460,530])
set(h1,'LineWidth',2)
subplot(423)
h3=plot(n,ge,n,ge,'+');
set(gca,'XLim',[1200
2200]);%X轴的数据显示范围
set(gca,'XTickLabel',[1300:200:2300]);%给坐标加标签
set(h3,'LineWidth',2)
subplot(425)
h5=plot(n,Ne,n,Ne,'+');
set(gca,'XLim',[1200
2200]);%X轴的数据显示范围
set(gca,'XTickLabel',[1300:200:2300]);%给坐标加标签
set(h5,'LineWidth',2)
;ylim([15,32]);
subplot(427)
h7=plot(n,Me,n,Me,'+');
set(gca,'XLim',[1200
2200]);%X轴的数据显示范围
set(gca,'XTickLabel',[1300:200:2300]);%给坐标加标签
set(h7,'LineWidth',2)
%% 画随功率Ne变化的曲线
subplot(422)
h2=plot(Ne,tr,Ne,tr,'+');
%
set(gca,'XLim',[15 35]);%X轴的数据显示范围
%
set(gca,'XTickLabel',[15:5:35]);%给坐标加标签
ylabel('tr\℃'); ylim([460,530])
set(h2,'LineWidth',2)
subplot(424)
h4=plot(Ne,ge,Ne,ge,'+');
set(h4,'LineWidth',2)
subplot(426)
h6=plot(Ne,n,Ne,n,'+');
set(h6,'LineWidth',2)
subplot(428)
h8=plot(Ne,Me,Ne,Me,'+');
set(h8,'LineWidth',2)

2025-04-08 广告
Stata系列软件是北京友万信息科技有限公司提供的强大统计分析工具。它广泛应用于经济学、社会学、医学等领域,支持数据管理、统计分析、数据可视化及程序设计。Stata以其高效的数据处理能力、丰富的统计分析方法和高质量的图形输出而受到青睐,能够...
点击进入详情页
本回答由友万科技提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |