필터 지우기
필터 지우기

Why don't i get a data type mismatch error?

조회 수: 1 (최근 30일)
Michael Felger
Michael Felger 2019년 6월 27일
편집: Michael Felger 2019년 6월 27일
Hi,
following is inside my simulink model:
  • a Stateflow chart, inside this chart:
  • a 2-dimensional array a(5,5), data type specified to fixed point fixdt(1,7,0).
Assigning a wrong fixed point values to the whole array leads to a data type mismatch error:
  • a = fi(zeros(5,5),1,8,0); // error due to word length mismatch
However, assigning individual values with a different fixed point value doesn't give any error:
  • a(1,1) = fi(0,1,8,0); // no error
My expectation would be to get a data type mismatch error, too.
Is there any setting to enable a strong data type check, to get a data type mismatch error here?
Matlab version: 2019a

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by