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 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의