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

12 vues (au cours des 30 derniers jours)
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?

Réponses (1)

Shivam Lahoti
Shivam Lahoti le 8 Jan 2025
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.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by