Invalid use of -. At least one of the operands must be scalar or the operands must be the same size. The units of the operands must be commensurate.

56 views (last 30 days)
Invalid use of -. At least one of the operands must be scalar or the operands must be the same size. The units of the operands must be commensurate. In ee.semiconductors.n_mosfet
Argument 1 = {[1x1 double],'K'}
Argument 2 = {25,'C'}
T = {[1x1 double],'K'}
Tmeas = {25,'C'}
Warning: Unit'C' for parameter'Measurement temperature: Unit' specified in the block is not commensurate with the default unit'degC' specified in the library. Please specify a unit commensurate with'degC' for parameter'Measurement temperature: Unit'.
Warning: Unit'C
  2 Comments

Sign in to comment.

Answers (1)

Sindar
Sindar on 13 Oct 2020
Wherever you specify the units as 'C', put 'degC' instead
  1 Comment
Waseem Haider
Waseem Haider on 15 Oct 2020
Thanks for your kind response but i already tried it. now i got this error.
Unit expression C is not commensurate with degC. please provide a commensurate unit expression.

Sign in to comment.

Categories

Find more on Physical Units in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by