| 查看: 879 | 回复: 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人回复
散金币,求好运,祝面上顺利!
已经有80人回复
物理学I论文润色/翻译怎么收费?
已经有57人回复
华东师范大学芯片设计徐珑真实水平咋样
已经有1人回复
调剂
已经有0人回复
【新加坡】纳米电子器件项目组有“联合培养博士生”名额
已经有0人回复
中德博士后2026项目5月30日截止- 国内博士后入站、德国两年全职
已经有0人回复
面向全球申请人的中德博士后2026项目5月30日截止- 国内博后入站德国两年全职
已经有0人回复
【新加坡】纳米电子器件项目组有“联合培养博士生”名额
已经有2人回复
重庆交大材料学院26年硕士招生复试实施细则已出。欢迎加入光子学微结构与器件课题组。
已经有0人回复
北工大宋晓艳教授团队招收2026年9月入学博士【学博和专博名额均有】!
已经有1人回复
» 本主题相关价值贴推荐,对您同样有帮助:
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













回复此楼