Baseline Criteria: How to read discrete data from excel rather than continuous data.

조회 수: 2 (최근 30일)
I am using baseline criteria to verify the model.I am stuck with one issue which is causing test case failure.
When i am trying to data output from excel,it's reading continous value like when value change from 1 to 3 wiith time terveral of 1sec then it should change without any slope.
Inshort there is any way to read daat at disctre point(time sampling = 1sec)
Below image have output data and graph.
I wanted to read data 1 to 3 as a direct jump rather than any slopy transition.

답변 (1개)

Walter Roberson
Walter Roberson 2022년 5월 19일
https://www.mathworks.com/help/simulink/slref/fromspreadsheet.html
configure Interpolation to "zero order hold"

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by