Units for constants in simscape custom module
Ältere Kommentare anzeigen
I have a constant that I have declared in the variables section. I'm assuming that everything needs units. Some papers use constants that use equations with units that don't match (on one side of the equation its a constant and on the other side might be V/K)
variables(Access=private)
cm = { 0, '' };
i = { 2, 'A' };
V1= { 0, 'V' };
T1 = { 0, 'K' };
end
in the equations section if I mix up the units will it throw an error?
equations
i == V1*T1;
end
is there some way to have a unitless constant that doesn't have units?
equations
cm == V1*T1;
end
Antworten (1)
Nirja Mehta
am 6 Feb. 2017
0 Stimmen
Assign '1' as the unit of "cm".
1 Kommentar
Steven
am 6 Feb. 2017
Kategorien
Mehr zu Foundation and Custom Domains finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!