Warning: Parameter object's DataType property has been set while its Value is not double precision.

조회 수: 12 (최근 30일)
I have this warnings in matlab
Warning: Parameter object's DataType property has been set while its Value is not double precision. Converting Value to real-world value (double precision).
I use .m file when declare parameter
and delare like this
Y.Value = [fi([0,10,10,0,0,0,0,0,0,0], 1, 16, 0.01, 0)];
When I enterend Y Value in command Window say like this
Parameter with properties:
Value: [0 10 10 0 0 0 0 0 0 0]
CoderInfo: [1×1 Simulink.CoderInfo]
Description: '-'
DataType: 'fixdt(0,16,0.01,0)'
Min: []
Max: []
Unit: ''
Complexity: 'real'
Dimensions: [1 10]
Why this warning happens?

답변 (1개)

Shivam Lahoti
Shivam Lahoti 2025년 1월 8일
Hi Dayoung,
The warning, "Parameter object's DataType property has been set while its Value is not double precision" is with Simulink.Parameter occurs when the Value is not in double format, as Simulink defaults to storing values as double regardless of the specified DataType. This results in a warning because the DataType isn't actually changed during simulation or code generation. To address this, consider modifying or removing the action of changing the DataType property.
Please refer to the following documentation to understand more about the same:
I hope this will help in resolving the warning.
Regards,
Shivam.

카테고리

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

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by