getTable(ScheduleDose,RepeatDose)
Return data from SimBiology dose object as table
Syntax
tbl = getTable(doseObj)
Description
returns
dosing data from the dose object tbl
= getTable(doseObj
)doseObj
as a
table tbl
.
Input Arguments
doseObj
— Dose object
ScheduleDose
object | RepeatDose
object | array of dose objects
Dose object, specified as a ScheduleDose
object
or RepeatDose object
or
array of these objects.
Output Arguments
tbl
— Dosing data
table | cell array of tables
Dosing data, returned as a table or cell array of tables. If doseObj
is
an array of dose objects, then tbl
is a cell
array of tables with the same size as doseObj
.
If doseObj
is a RepeatDose
object
and any of the StartTime
, Amount
,
Rate
, Interval
, and
RepeatCount
properties are parameterized, the table shows the name of the parameter in the
corresponding column instead.
Examples
Retrieve a Table of Dosing Information from a RepeatDose Object
Create a RepeatDose object with some dosing information.
rdose = sbiodose('rd','repeat'); rdose.TargetName = 'x'; rdose.StartTime = 5; rdose.TimeUnits = 'second'; rdose.Amount = 300; rdose.AmountUnits = 'molecule'; rdose.Rate = 1; rdose.RateUnits = 'molecule/second'; rdose.Interval = 100; rdose.RepeatCount = 2;
Get a table of such dosing information.
tbl = getTable(rdose)
tbl = StartTime Amount Rate Interval RepeatCount _________ ______ ____ ________ ___________ 5 300 1 100 2
Note that the units are also copied over and assigned
to tbl.Properties.VariableUnits
property.
tbl.Properties
ans = Description: '' VariableDescriptions: {} VariableUnits: {'second' 'molecule' 'molecule/second' 'second' ''} DimensionNames: {'Row' 'Variable'} UserData: [] RowNames: {} VariableNames: {'StartTime' 'Amount' 'Rate' 'Interval' 'RepeatCount'}
Retrieve a Table of Dosing Information from a Schedule Object
Create a ScheduleDose object with some dosing information.
sdose = sbiodose('sdose','schedule'); sdose.Amount = [100 200 300]; sdose.Time = [5 10 15];
Get a table of such dosing information.
tbl = getTable(sdose)
tbl = Time Amount ____ ______ 5 100 10 200 15 300
Version History
Introduced in R2014a
See Also
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)