Stateflow documentation:
...To detect changes, the chart automatically double-buffers these values in local variables, as follows:
var_name_prev Value of data at the beginning of the last time step
var_name_start Value of data at the beginning of the current time step
Question: do I have read access to the buffered variables? I want to use them for calculations inside the stateflow chart.

답변 (1개)

Corey Lagunowich
Corey Lagunowich 2025년 4월 2일

0 개 추천

No, these are internal buffers and not available to the user as of R2024b.
As a workaround, I suggest implementing your own buffers using Local data objects.

카테고리

도움말 센터File Exchange에서 Stateflow에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 2월 1일

답변:

2025년 4월 2일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by