Warning: Parameter object's DataType property has been set while its Value is not double precision.
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Shivam Lahoti
am 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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!