| 查看: 928 | 回复: 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 不知道为什么出现这样的错误,求大侠帮忙解决!谢谢~~~ |
» 猜你喜欢
如何从铁电相到顺电相。
已经有1人回复
各位大佬,求一份最新Wien2k版本作为学习用途
已经有0人回复
物理学I论文润色/翻译怎么收费?
已经有69人回复
南科大活性流体和软物质课题组诚招2027级博士、硕士研究生和博后
已经有42人回复
瑞典林雪平大学博士后招聘|PEC Water Splitting 方向
已经有24人回复
PRB投稿,Acknowledgment sent to author状态十天了
已经有3人回复
PVA溶解
已经有2人回复
基金申请
已经有44人回复
CSC与新西兰维多利亚大学PhD奖学金项目
已经有0人回复
新西兰Robinson研究所 招聘CSC公派访问人员
已经有0人回复
帮我的英语口语老师找学生
已经有0人回复
» 本主题相关价值贴推荐,对您同样有帮助:
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










回复此楼
20