MATLAB 帮助中心
获取目标计算机的句柄
自 R2022b 起
tg = getTarget(tgs,targetName)
如果目标 targetName 已添加到目标对象,则 tg = getTarget(tgs,targetName) 返回其句柄。
targetName
tg
tgs
示例
全部折叠
为目标对象添加名为 LinuxTarget1 的目标并获取该目标的句柄。
LinuxTarget1
tgs = linux.Targets(); addTarget(tgs, "LinuxTarget1", "178.10.10.1", "user1", "myPassword"); tg = getTarget(tgs, "LinuxTarget1");
tg 包含该目标的句柄。
由 linux.Targets 类创建的目标对象。
linux.Targets
示例: tgs, target_object
target_object
指定目标的名称。
示例: "LinuxTarget1"
保留指定目标的句柄。
在 R2022b 中推出
Linux Runtime Manager | connect | disconnect | deployApplicationPackage
Linux Runtime Manager
connect
disconnect
deployApplicationPackage
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处