Collection of Matlab codes to solve typical CRE (Chemical Reaction Engineering) problems
Before running the codes (described in the following), remember to add the kinetics
folder to MATLAB search path using the command addpath
. As an example:
addpath('C:\Teaching\Chemical Reaction Engineering\Matlab4CRE\kinetics')
The MATLAB codes are organized in the following folders:
kinetics
: classes to manage kinetic mechanism (together with thermoynamic data and transport properties)
simulation
: codes for simulating tubular reactors and transient, perfectly stirred reactors
regressions
: examples of regression analysis to evaluate kinetic parameters in batch reactors
design
: codes to size ideal reactors in isothermal conditions
exercises
: excercises from Fogler (Elements of Chemical Reaction Engineering, 4th Edition) and Levenspiel (Chemical Reaction Engineering, 3rd Edition)
reactive_distillation
: example of reactive ditillation coupled to semi-batch reactor
practicals
: exercises proposed in the practical sessions of Chemical Reaction Engineering course at Politecnico di Milano
小弟今天试着用Matlab运行Comsol生成的M文件,但是运行的时候出现如下错误: Java exception occurred: java.lang.IllegalStateException: Not active: CDOTransaction(1) at org.eclipse.net4j.util.lifecycle.LifecycleUtil.checkActive(Lifecyc
1600 , x ≥ 60 0, x < 60 新建一个 M 文件,复制下面的代码: clear all ; close all ; clc; NUM=xlsread( 'record.xlsx' ); [n,~]=size(NUM); cre=0; s1=0; s2=0; for i=1:n if (~isnan
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 一、intlinprog中options选项 整数线性规划函数intlinprog的调用比较明确,但是对于数据稍大一些的优化计算,分值定界求整数运算速度太慢,所以需要调节options中的参数。 二、内容 1.绝对容差(AbsoluteGapTolerance),默认值为0,可以设置为非负值,计算停止条件之一,上界与下界之差应小于等
aero/ aero/aero/ aero/aero/@Aero/ aero/aero/@Aero/@Animation/ aero/aero/@Aero/@Animation/addBody.p aero/aero/@Aero/@Animation/Animation.m aero/aero/@Aero/@Animation/Animation.p aero/aero/@Aero/@Animat
我正在尝试使用MATLAB中的随机森林算法进行预测。 但是,我在使它正确运行方面遇到问题。 功能签名如下。 B = TreeBagger(NTrees,X,Y) 如果我正确理解这一点,则NTrees是要放置的树的数量,X是要素矩阵,其中一行对应于一个观测值,一个列对应于一个要素,Y则对应于X的标签。 使用它执行分类时,我将选项"方法"设置为"分类"。 但是,我收到以下错误消息: Unable to
包含的文件有: createDistMat.m,pca.m,feret.m,dup1,dup2,fb,fc,feretGallery,listAll,trainList 使用方法: Run the function pca to create a variable pcaProj. Input variable pcaProj to the function createDistMat, thus
这里有几个选项… 最简单的方法是使用功能EZPLOT: ezplot('x.^3 + x.*y + y.^2 - 36',[-10 10 -10 10]); 这给你以下情节: 另一个选择是生成一组点,您将在其中评估函数f(x,y)= x ^ 3 x * yy ^ 2,然后使用函数CONTOUR绘制轮廓线,其中f(x,y)等于36: [x,y] = meshgrid(-10:0.1:10); %#