MATLAB 帮助中心
Return exported SimBiology model dose object
doses = getdose(model)
doses = getdose(model,doseName)
doses = getdose(model) returns all the SimBiology.export.Dose objects associated with the exported model.
doses
model
SimBiology.export.Dose
example
doses = getdose(model,doseName) returns the export dose object with the Name property matching doseName.
doseName
Name
collapse all
Open a sample SimBiology model project, and export the included model object.
sbioloadproject('AntibacterialPKPD') em = export(m1);
Display the editable doses in the exported model object.
doses = getdose(em)
doses = 1x4 RepeatDose array with properties: Interval RepeatCount StartTime TimeUnits Amount AmountUnits DurationParameterName LagParameterName Name Notes Parent Rate RateUnits TargetName
The exported model has 4 repeated dose objects. Display the dose names.
{doses.Name}
ans = '250 mg bid' '250 mg tid' '500 mg bid' '500 mg tid'
Extract only the 3rd dose object from the exported model object.
dose3 = getdose(em,'500 mg bid')
dose3 = RepeatDose with properties: Interval: 12 RepeatCount: 27 StartTime: 0 TimeUnits: 'hour' Amount: 500 AmountUnits: 'milligram' DurationParameterName: 'TDose' LagParameterName: '' Name: '500 mg bid' Notes: '' Parent: 'Antibacterial' Rate: 0 RateUnits: '' TargetName: 'Central.Drug'
SimBiology.export.Model
Input model, specified as a SimBiology.export.Model object.
Dose name, specified as a character vector or string scalar. The doseName input must contain a name to match against the Name property of the export dose objects in model. If you do not specify doseName, then getdose returns all dose objects.
getdose
Output doses, returned as export dose objects in model, or the export dose object with Name property doseName.
Introduced in R2012b
SimBiology.export.Model | SimBiology.export.Dose | export
export
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处