resetoptions
Description
resets the specified properties fitProblem2
= resetoptions(fitProblem1
,propertyNames
)propertyNames
of a SimBiology
fitproblem
object fitProblem1
back to their default
values.
Examples
Reset Optional SimBiology Fit Problem Properties
Create a fitproblem
object.
fp1 = fitproblem
fp1 = fitproblem with properties: Required: Data: [0x0 groupedData] Estimated: [1x0 estimatedInfo] FitFunction: "sbiofit" Model: [0x0 SimBiology.Model] ResponseMap: [1x0 string] Optional: Doses: [0x0 SimBiology.Dose] FunctionName: "auto" Options: [] ProgressPlot: 0 UseParallel: 0 Variants: [0x0 SimBiology.Variant] sbiofit options: ErrorModel: "constant" Pooled: "auto" SensitivityAnalysis: "auto" Weights: []
The object has required and optional properties. resetoptions
lets you reset the optional properties back to default values.
Change two of the optional properties to some nondefault values.
fp1.ProgressPlot = true;
fp1.FunctionName = "lsqnonlin";
Reset the properties back to their default values.
fp2 = resetoptions(fp1,["ProgressPlot","FunctionName"]); fp2.ProgressPlot
ans = logical
0
fp2.FunctionName
ans = "auto"
Input Arguments
fitProblem1
— SimBiology fit problem
fitproblem
object
SimBiology fit problem, specified as a fitproblem
object.
propertyNames
— Names of fit problem object properties
character vector | string scalar | string vector | cell array of character vectors
Names of fit problem object properties to reset to default values, specified as a character vector, string scalar, string vector, or cell array of character vectors.
Data Types: char
| string
| cell
Output Arguments
fitProblem2
— New SimBiology fit problem object
fitproblem
object
New SimBiology fit problem object after resetting the specified properties to
default values, returned as a fitproblem
object.
Version History
Introduced in R2021b
See Also
MATLAB Command
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.
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)