| 查看: 844 | 回复: 1 | ||
1312758691新虫 (小有名气)
|
[求助]
Undefined function 'norm' for input arguments of type 'sym'. 已有1人参与
|
|
clear; clc; S1=[100 300 0]; %the compositions of stream1:N2,H2,NH3 S60=[70 210 1]; %the initial compositions of stream6:N2,H2,NH3 K=0.5; %equilibrium constant P=200*101.325; %pressure of reaction,KPa P0=100 %stander pressure,KPa tol=0.00001; %tolerance %----------------------------------------------------------------------- %calculate the compositions of stream2:N2,H2,NH3 S2=S1+S60; %calculate the proportion of a=H2:N2 in the stream2 a=S2(2)/S2(1); X=solve('K*P*(1-x)^0.5*(a-3*x)^1.5==2*x*(a+1-2*x)*P0'); %calculate the compositions of stream3,stream4,stream5,stream6 delta=-X*S2(1); %the changement of N2 S3=[delta 3*delta -2*delta]; S4=S2+S3; S5=[0.005*S4(1) 0.005*S4(2) 0.98*S4(3)]; S6=S4-S5; %----------------------------------------------------------------------- %----------------------------------------------------------------------- %iterative computation delta_S=S6-S60; while(norm(delta_S))>tol S60=S6; S2=S1+S60; a=S2(2)/S2(1); X=solve('K*P*(1-x)^0.5*(a-3*x)^1.5==2*x*(a+1-2*x)*P0'); delta=-X*S2(1); S3=[delta 3*delta -2*delta]; S4=S2+S3; S5=[0.005*S4(1) 0.005*S4(2) 0.98*S4(3)]; S6=S4-S5; delta_S=S6-S60; end S=[S1;S2;S3;S4;S5;S6] 运行程序出现这样的错误:Undefined function 'norm' for input arguments of type 'sym'. Error in NH3 (line 25) while(norm(delta_S))>tol 不知道为什么出现这样的错误,求大侠帮忙解决!谢谢~~~ |
» 猜你喜欢
反铁磁体中的磁性切换:两种不同的机制已成功可视化
已经有0人回复
求标准粉末衍射卡号 ICDD 01-076-1802
已经有0人回复
物理学I论文润色/翻译怎么收费?
已经有54人回复
新西兰Robinson研究所招收全奖PhD
已经有0人回复
石墨烯转移--二氧化硅衬底石墨烯
已经有0人回复
笼目材料中量子自旋液体基态的证据
已经有0人回复
数学教学论硕士可以读数学物理博士吗?
已经有0人回复
德国亥姆霍兹Hereon中心汉堡分部招镁合金腐蚀裂变SCC课题方向2026公派博士生
已经有4人回复
澳门大学 应用物理及材料工程研究院 潘晖教授课题组诚招博士后
已经有11人回复
» 本主题相关价值贴推荐,对您同样有帮助:
Undefined function 'mashgrid' for input arguments of type 'double'.
已经有5人回复
matlab2010不能打开m文件
已经有6人回复
报错求教Undefined functionfor input arguments of type 'double'.
已经有4人回复
matlab新手求助
已经有6人回复
有个matlab程序,但是运行不下来,求高手
已经有23人回复
ncload到底该怎么用??快崩溃了…………
已经有7人回复
运行matlab出现错误
已经有4人回复
通过实验数据拟合,求解公式中的参数
已经有14人回复
今年科技进步奖总算有个关于信号处理的项目了:单分量函数论及自适应Fourier分解
已经有17人回复
求高手解答Matlab求解微分方程的初始值和边界值问题
已经有5人回复
REFPROP怎么根据P和熵求焓?
已经有9人回复
matlab如何生成不同的随机数
已经有9人回复
matlab-出错提示Undefined method for input arguments type 'double'.
已经有5人回复
Matlab中如何自己定义一个新函数,然后计算时可以调用?
已经有12人回复
使用matlab 中的fsolve 老提示出错
已经有4人回复
matlab Undefined function or method '~' for input arguments of type 'char'.
已经有12人回复
matlab求解色散方程,求助
已经有12人回复
m文件调用问题
已经有4人回复
matlab问题求助
已经有16人回复
【求助】请教级数求和【已解决】
已经有8人回复
eidie
木虫之王 (文坛精英)
- 应助: 15 (小学生)
- 贵宾: 1.016
- 金币: 71298.4
- 散金: 8785
- 红花: 240
- 沙发: 1
- 帖子: 13888
- 在线: 1583.2小时
- 虫号: 2259480
- 注册: 2013-01-24
- 专业: 应用光学

2楼2015-04-07 09:28:54












回复此楼