How can I check the units of measure for signals in SIMULINK?

J
jasminemichae · Sep 17, 2020 · 2.4K views
Question
I would like to assign units to Simulink signals and I would like SIMULINK to diagnose"unit mismatch operation" like to pass signals with different units to a SUM block.
Expert Answer
Profile picture of Prashant Kumar
Prashant Kumar PhD Expert
Answered Aug 25, 2026
The ability to set a "Units of measure" attribute to signals or block inports is not available in Simulink.
You can exploit Simulink Data Objects to explicitly set units to a signal as follows:
 
 
s=Simulink.Signal

You can set the field "DocUnits" of the signal "S" as follows:

s.DocUnits='RPM'

However, Simulink will not check the units of this signal when added to another signal.The DocUnits property is only for documentation.

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!