MATLAB 帮助中心
Create new model
ModelObj = mbcmodel.CreateModel(Type,Inputs)
ModelObj = CreateModel(Model,Type)
ModelObj = mbcmodel.CreateModel(Type,Inputs) creates an ModelObj object of the specified Type.
ModelObj
Type
Inputs
example
ModelObj = CreateModel(Model,Type) creates a new model (of the specified Type) with the same inputs as an existing Model, where Model is a ModelObj object.
Model
collapse all
Create a hybrid spline with four input factors.
M = mbcmodel.CreateModel('Hybrid Spline', 4)
Create an RBF with four input factors.
Inputs = mbcmodel.modelinput('Symbol',{'N','L','EXH','INT'}',... 'Name',{'ENGSPEED','LOAD','EXHCAM','INTCAM'}',... 'Range',{[800 5000],[0.1 1],[-5 50],[-5 50]}'); RBFModel = mbcmodel.CreateModel( 'RBF', Inputs);
Create a polynomial with the same input factors as the previously created RBF.
PolyModel = CreateModel(RBFModel,'Polynomial')
Type of model objects.
Note
Spaces and case in model Type are ignored.
The model type must be one in this table.
mbcmodel.linearmodel
mbcmodel.model
mbcmodel.localmodel
Data Types: char | string
char
string
mbcmodel.modelinput
Model input, specified as an mbcmodel.modelinput object.
Model object.
An existing ModelObj object.
Model created by CreateModel, returned as a model object.
CreateModel
Introduced in R2007a
CreateData | mbcmodel.model
CreateData
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处