文档帮助中心文档
删除单元系统
removeUnitSystem (unitSystem)
例子
removeUnitSystem (unitSystem)移除单元系统unitSystem。您只能删除用户定义的单元系统newUnitSystem。中列出的预定义单元系统无法删除单位系统列表。
removeUnitSystem (unitSystem)
unitSystem
newUnitSystem
全部折叠
定义一个单位制,用单位制重写单位制,然后通过使用删除单位制removeUnitSystem。
removeUnitSystem
定义单位制mySystem与国际单位制的基本单位和派生的单位千瓦小时。
mySystem
u = symunit;bunits = baseUnits (SI);dunits = [u.kWh];mySystem = newUnitSystem (mySystem, bunits dunits)
mySystem = " mySystem "
把50000焦耳换算成导出的单位mySystem通过使用重写对于第三个论证“导出”。正如预期的那样,结果是以千瓦时为单位。
重写
“导出”
重写(50000 * u.J mySystem,“派生”)
ans =(1/72) *(千瓦时)
移除单位制mySystem通过使用removeUnitSystem。
removeUnitSystem (mySystem)
将单位转换为mySystem现在抛出一个错误。
单位系统的名称,指定为字符串或字符向量。
baseUnits|derivedUnits|newUnitSystem|removeUnit|重写|symunit|unitSystems
baseUnits
derivedUnits
removeUnit
symunit
unitSystems
你点击一个链接对应于这个MATLAB命令:
通过在MATLAB命令窗口中输入命令来运行命令。Web浏览器不支持MATLAB命令。金宝app
选择一个网站,在那里获得翻译的内容,并看到当地的活动和优惠。根据您的位置,我们建议您选择:。
你也可以从以下列表中选择一个网站:
选择中国网站(中文或英文)以获得最佳网站性能。其他MathWorks国家站点没有针对您所在位置的访问进行优化。
与当地办事处联系