getDestinationURL
类: slreq.Link
命名空间: slreq
输入参数
myLink
— 链接
slreq.Link
对象
链接,指定为 slreq.Link
对象。
输出参量
URL
— 打开链接目标的 URL
字符向量
打开链接目的地的 URL,以字符向量形式返回。在 Web 浏览器中输入 URL 会在 MATLAB® 中打开链接目标,例如需求。
示例
返回链接目标的 URL
假设您在当前文件夹 signals~m.slmx
中设置了一个链接,并且您想要检索指向每个链接的链接目标的 URL。
使用slreq.load
函数加载链接集。
linkSet = slreq.load("signals~m.slmx");
使用 getLinks
函数将链接作为 slreq.Link
对象数组检索。
links = linkSet.getLinks;
创建一个 for
循环,检索 slreq.Link
对象数组中链接的每个链接目标的 URL。
linkDestinationURLs = cell(length(links),1); for k = 1:length(links) linkDestinationURLs{k} = links(k).getDestinationURL; end
在网络浏览器中输入 linkDestinationURLs
中某个元素的 URL 文本,以打开 MATLAB 中的链接目标。
版本历史记录
在 R2023a 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)