| 查看: 850 | 回复: 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 不知道为什么出现这样的错误,求大侠帮忙解决!谢谢~~~ |
» 猜你喜欢
南开大学物理学院张书辉副教授招收凝聚态物理理论方向博士生、硕士生
已经有22人回复
杂志要求提供official language-editing certificate
已经有4人回复
物理学I论文润色/翻译怎么收费?
已经有152人回复
深圳大学2026年秋博士招生-物理学-活性胶体方向-高永祥课题组
已经有17人回复
论物质与能量的统一模型及物理现象解释
已经有0人回复
基于基元I统一理论的数学相关应用推导
已经有0人回复
基元I统一理论:宇宙本质、层级演化与修炼文明的本源规律
已经有1人回复
基元I理论下三大核心空间现象精准推导与细节解析
已经有0人回复
基于基元 I 统一理论的反重力理论推导
已经有0人回复
基于基元I统一理论的量子力学本源推导
已经有1人回复
推荐一款可以AI辅助写作的Latex编辑器SmartLatexEditor,超级好用,AI润色,全免费
已经有5人回复
» 本主题相关价值贴推荐,对您同样有帮助:
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













回复此楼