帮助中心帮助中心
删除AUTOSAR元素
删除(arProps elementPath)
例子
删除(arProps,elementPath)删除AUTOSAR元素elementPath.
删除(arProps,elementPath)
arProps
elementPath
全部折叠
删除收发接口Interface1从AUTOSAR配置的模型。
Interface1
目录(fullfile (matlabroot,' / / autosarblockset /主要的例子));hModel =“autosar_swc_expfcns”;open_system (hModel);arProps = autosar.api.getAUTOSARProperties(hModel);添加接口3addPackageableElement (arProps“SenderReceiverInterface”,' / pkg /如果',“Interface3”);ifPaths = find(arProps,[],“SenderReceiverInterface”,“PathType”,“FullyQualified”)
ifPaths = 1×3 cell array {'/pkg/if/Interface1'} {'/pkg/if/Interface2'} {'/pkg/if/Interface3'}
找到AUTOSAR DataReceiverPort并将其接口从Interface1更改为Interface3arPortType =“DataReceiverPort”;aswcPath = find(arProps,[],“AtomicComponent”,“PathType”,“FullyQualified”);rPorts = find(arProps,aswcPath{1},arPortType,“PathType”,“FullyQualified”);rPort = rPorts{1};集(arProps rPort,“界面”,“Interface3”)删除接口1删除(arProps,“Interface1”);ifPaths = find(arProps,[],“SenderReceiverInterface”,“PathType”,“FullyQualified”)
ifPaths = 1×2 cell array {'/pkg/if/Interface2'} {'/pkg/if/Interface3'}
先前返回的模型的AUTOSAR属性信息arProps= autosar.api.getAUTOSARProperties (模型).模型表示模型名称的句柄、字符向量或字符串标量。
arProps= autosar.api.getAUTOSARProperties (模型)
模型
例子:arProps
要删除的AUTOSAR元素的路径。
例子:“输入”
“输入”
在R2013b中介绍
autosar.api.getAUTOSARProperties|添加
autosar.api.getAUTOSARProperties
添加
你点击了一个对应于这个MATLAB命令的链接:
在MATLAB命令窗口中输入命令来运行该命令。Web浏览器不支持MATLAB命令。金宝app
选择一个网站,在可用的地方获得翻译的内容,并查看当地的活动和优惠。根据您的地理位置,我们建议您选择:.
您也可以从以下列表中选择网站:
选择中国网站(中文或英文)以获得最佳的网站表现。其他MathWorks国家网站没有针对从您的位置访问进行优化。
联系当地办事处