Warning: Parameter object's DataType property has been set while its Value is not double precision.
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Shivam Lahoti
il 8 Gen 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 Commenti
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!