24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 255  |  回复: 1

hpuwyb

新虫 (小有名气)

[求助] 错误出在哪里了?

>> a=5.0;L=10.0;B=10.0;
rho=1000.0;gra=9.81;W=100000.0;
ratio=L/a;
theta=linspace(0.0,pi/2.0);
VoverVw=cos(theta)+0.5*ratio*cos(theta).*(theta);
options=optimset('display','off');
figure(1)
subplot(1,2,1)
plot(theta*180/pi,VoverVw,'k')
axis([0.0,90.0,0.0,1.5])
ylabel('V/V_w')
xlabel('/theta(degrees)')
grid on
hold on
MaxTheta=inline('1-(cos(theta)+0.5*ratio*cos(theta).*sin(theta))','theta','ratio');
ThetaMaxDeg=fzero(MaxTheta,[0.01,pi/2.0],options,ratio)*180/pi;
plot(ThetaMaxDeg,1.0,'sk')
text(19,0.95,['\theta_{max}=',num2str(ThetaMaxDeg,4)'\'circ'])
ThetaMax Vol=fiminbnd(MaxTheta,0.0,ThetaMaxDeg*pi/180,options,ratio);
MaxVol=1-MaxTheta(ThetaMaxVol,ratio);
plot(ThetaMaxVol*180.0/pi,MaxVol,'ks')
text(10,MaxVol+0.1,['max vol='num2str(MaxVol,4)])
text(10,MaxVol+0.05,['at\theta='num2str(ThetaMaxVol*180/pi,4)'\circ'])
subplot(1,2,2)
theta=linspace(0.01,ThetamaxDeg*pi/180);
h=zeros(1,length(theta));
for i=1:length(theta)
r=roots([tan(theta(i))*0.5,a,-a*L]);
h(i)=r(2);
end
plot(theta*180/pi,h)
ylabel('h(meters)')
xlabel('\theta(degrees)')
grid on
figure(2)
Frod=((B*rho*grav*h.^3)./(6*cos(theta).^2)+0.5*W*L*sin(theta))./(L*sin(theta+acos(cos(theta)/sqrt(2))));
plot(theta*180.0/pi,Frod*le-6
ylabel('F_{rod}(MN)')
xlabel('\theta(degrees)')
grid on
Matrix dimensions must agree.(运行后所显示的)怎么来解决啊???
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

xiegangmai

版主 (职业作家)

我没头衔

优秀版主优秀版主优秀版主

【答案】应助回帖

★ ★ ★ ★
感谢参与,应助指数 +1
hpuwyb: 金币+2 2013-05-10 10:41:04
ben_ladeng: 金币+2, 谢谢交流 2013-05-11 17:21:11
楼主是在出题考大家吗?
第18行应为:
text(19,0.95,['\theta_{max}=', num2str(ThetaMaxDeg,4),'\circ'])

第19行:
ThetaMax Vol是神马东东,中间加个空格表示什么?
fiminbnd是什么,自定义的函数?是fminbnd吧?

第23行:
text(10,MaxVol+0.05,[num2str(ThetaMaxVol*180/pi,4),'\circ'])

第36行:
grav是神马东东?

[ Last edited by xiegangmai on 2013-5-9 at 22:50 ]
明德厚学、求是创新
2楼2013-05-09 22:42:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 hpuwyb 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿重庆大学085404,总分314分,求调剂 +4 zf83hn 2026-04-03 4/200 2026-04-03 21:25 by 啵啵啵0119
[考研] 22408,264求调剂 +3 ywh729 2026-04-03 3/150 2026-04-03 20:50 by zhq0425
[考研] 293求调剂 +5 末未mm 2026-04-02 6/300 2026-04-03 15:20 by 王保杰33
[考研] 求调剂 +3 usbdndj 2026-04-03 3/150 2026-04-03 14:10 by dxiaoxin
[考研] 一志愿华北电力大学(北京),材料科学与工程学硕265,求调剂 +9 yelck 2026-04-03 10/500 2026-04-03 13:20 by yelck
[考研] 一志愿华东理工大学,080500学硕,317分,求调剂 +13 s1145 2026-03-31 15/750 2026-04-03 11:44 by msi123
[考研] 312 化工或制药调剂 +8 小小墨123 2026-04-02 9/450 2026-04-03 09:12 by zhouxiaoyu
[考研] 一志愿武汉理工0856,初试334 +3 26考研材料 2026-04-02 3/150 2026-04-02 21:22 by dongzh2009
[考研] 266分,一志愿电气工程,本科材料,求材料专业调剂 +4 哇呼哼呼哼 2026-04-02 4/200 2026-04-02 13:10 by yulian1987
[考研] 298求B区调剂 +4 zzz,,r 2026-04-02 5/250 2026-04-02 12:17 by 土木硕士招生
[考研] 求调剂推荐 +3 南山南@ 2026-04-01 3/150 2026-04-02 12:09 by xiaoranmu
[考研] 266分,一志愿电气工程,本科材料,求材料专业调剂 +10 哇呼哼呼哼 2026-04-01 11/550 2026-04-02 11:31 by lnilvy
[考研] 0710生物学求调剂 +9 manman511 2026-04-01 9/450 2026-04-02 10:00 by zxl830724
[考研] 0703求调剂 +4 zizimo 2026-03-31 4/200 2026-04-01 16:04 by yanflower7133
[硕博家园] 博一被送出联培感觉不适应怎么办 +3 全村的狗 2026-03-31 3/150 2026-04-01 10:44 by 328838485
[考研] 物理学调剂 +4 小羊36 2026-03-30 4/200 2026-03-31 16:16 by lishahe
[考研] 353求调剂 +3 江上枫_26 2026-03-28 3/150 2026-03-31 15:53 by jp9609
[考博] 材料专业申博 +5 杜雨婷dyt 2026-03-29 5/250 2026-03-31 11:19 by oooqiao
[考研] 南京大学化学调剂 +11 景随风 2026-03-29 16/800 2026-03-31 10:14 by herarysara
[考研] 083000环境科学与工程调剂,总分281 +4 橙子(胜意) 2026-03-30 4/200 2026-03-31 00:44 by Linzejun
信息提示
请填处理意见