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?
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!