필터 지우기
필터 지우기

Is it possible to output a NaN from the signal editor block? (RE)

조회 수: 4 (최근 30일)
Aarish
Aarish 2023년 4월 25일
댓글: Aarish 2023년 4월 25일
I'm hoping to add a signal editor for a test harness for my model in Simulink. The data which needs to be entered to the model has NaN values, but it seems like the signal editor block cannot output NaN's. What issue might I be running into? I looked at a similar MATLAB Central thread, but did not find my answer there (although I had the same problem). Is there any other way to input NaN values from a loading block? Thanks!

답변 (1개)

Sara Nadeau
Sara Nadeau 2023년 4월 25일
If you are working in R2022b or later, you could try loading the data using a Playback block instead to see if that works for you: https://www.mathworks.com/help/simulink/slref/playback.html
Generally other loading blocks, such as the Signal Editor, From Workspace, and Inport blocks, currently do not support loading Inf or NaN values.

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by