Getting error : Unrecognized field name "array".
4 次查看(过去 30 天)
显示 更早的评论
Getting the below error. How to resolve it.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1265080/image.png)
0 个评论
回答(1 个)
Steven Lord
2023-1-16
Does this command indicate that train.mat contains a variable named array?
whos -file train.mat % or whos('-file', 'train.mat')
The train.mat file included in MATLAB does not.
which -all train.mat
Did you expect array to refer to either the variable Fs or the variable y in the train.mat in MATLAB?
2 个评论
Steven Lord
2023-1-16
ecg_signal = ecg.y(3, :)
But note if you later define ecg to be the data loaded from a different file, one that uses a different variable name, you'd need to use a different field name. The functionality described on this documentation page may be of use to you in that senario.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Manage Products 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!