mdfChannelGroupInfo
语法
说明
返回有关指定 MDF 文件中所有通道组的信息表。infoTable
= mdfChannelGroupInfo(mdfFileName
)
仅返回由 infoTable
= mdfChannelGroupInfo(mdfFileName
,GroupNumber=grpNum)grpNum
指定的组的有关信息。对于一个组,通道组编号 grpNum
指定为数值标量;对于多个组,指定为数值向量。
示例
从 MDF 文件获取通道组信息
获取关于所有组的信息。
gi = mdfChannelGroupInfo("VehicleData.mf4")
gi = 2×13 table GroupNumber AcquisitionName Comment NumSamples DataSize Sorted SourceName SourcePath SourceComment SourceType SourceBusType SourceBusChannelNumber SourceSimulated ___________ _______________ ___________________________________________________________________________ __________ ________ ______ ___________ ___________ _____________ ___________ _____________ ______________________ _______________ 1 <undefined> Simulation of an automatic transmission controller during passing maneuver. 751 43558 true <undefined> <undefined> <undefined> Unspecified Unspecified 0 false 2 <undefined> Simulation of engine gas dynamics. 92033 2208792 true <undefined> <undefined> <undefined> Unspecified Unspecified 0 false
获取特定组的信息。
gi = mdfChannelGroupInfo("VehicleData.mf4",GroupNumber=2)
gi = 1×13 table GroupNumber AcquisitionName Comment NumSamples DataSize Sorted SourceName SourcePath SourceComment SourceType SourceBusType SourceBusChannelNumber SourceSimulated ___________ _______________ __________________________________ __________ ________ ______ ___________ ___________ _____________ ___________ _____________ ______________________ _______________ 2 <undefined> Simulation of engine gas dynamics. 92033 2208792 true <undefined> <undefined> <undefined> Unspecified Unspecified 0 false
输入参数
mdfFileName
— MDF 文件名
字符串 | 字符向量
MDF 文件名(包括必要的完整或相对路径),指定为字符串或字符向量。您可以使用 URL 来指定远程服务器上的文件。
根据您要访问的位置,mdfFileName
可以采用以下形式之一。
位置 | 形式 | ||||||||
---|---|---|---|---|---|---|---|---|---|
当前文件夹或 MATLAB® 路径 | 要访问当前文件夹或 MATLAB 路径中的文件,请在 示例: | ||||||||
其他文件夹 | 要访问当前文件夹以外的文件夹中的文件,请在 示例: 示例: | ||||||||
远程位置 | 要访问远程位置的文件,
根据远程位置,
有关详细信息,请参阅处理远程数据。 示例: |
数据类型: string
| char
输出参量
infoTable
— 通道组信息
表
在组表中返回的通道组信息。
版本历史记录
在 R2023a 中推出R2023a: 支持远程文件 URL
您可以直接访问存储在远程位置的 MDF 文件数据,包括 Amazon S3、Azure® Blob 存储和 HDFS。
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)