Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ssGetStateAbsTol

Get the absolute tolerance used by the variable-step solver for a specified state

Syntax

real_T ssGetStateAbsTol(SimStruct *S, int_T state)

Arguments

S

SimStruct representing an S-Function block.

state

Index of the state whose absolute tolerance is to be returned.

Returns

A real_T value for the absolute tolerance of the state referenced by the index state.

Description

Use to get the absolute tolerance for a particular state.

    Note   Absolute tolerances are not allocated for fixed-step solvers. Therefore, you should never invoke this macro until you have verified that the simulation is using a variable-step solver, using ssIsVariableStepSolver.

Languages

C, C++

Example

See the S-function sfun_atol.c used in sfcndemo_sfun_atol.

Introduced before R2006a

Was this topic helpful?