isDone
数据结束状态
说明
示例
读取 MAT 文件
以下示例说明如何使用 dsp.MatFileReader
(DSP System Toolbox) 对象读取 MAT 文件。
注意
该示例需要 DSP System Toolbox™。
filename = [tempname '.mat']; % Create variable name originalData = rand(10,2); save(filename,'originalData','-v7.3'); % Write to MAT file mfr = dsp.MatFileReader(filename,'VariableName',... 'originalData','SamplesPerFrame', 4); while ~isDone(mfr) % Stream data into MATLAB isDone(mfr) % Display zero if end-of-data not reached finalData = mfr() % Display read frame end
输入参数
obj
— 要查询的 System object™
System object
您要查询其状态的 System object。
输出参数
tf
— True 或 false
0
| 1
true 或 false 结果,返回为:
逻辑值
1
(已完成)- 已到达数据结束。逻辑值
0
(未完成)- 尚未到达数据结束。
扩展功能
C/C++ 代码生成
使用 MATLAB® Coder™ 生成 C 代码和 C++ 代码。
有关详细信息,请参阅 MATLAB 代码生成中的 System object (MATLAB Coder)。
版本历史记录
在 R2010a 中推出
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)