I have these two errors when i try and run my script. Any help greatly appreciated
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
VBBV
2022-12-8
编辑:VBBV
2022-12-8
T = [T tmpt]
From the error, it is possible that this condition
T(find(T==-9.99)) = NaN; %
is not satisfied in the last(215th) filename which will return a zero (empty) index value. In Matlab zero indexing is not used, only one based indexing is followed.
3 个评论
Walter Roberson
2022-12-8
find will never return 0. It can return empty but assignment using empty index is permitted.
You do not show us what the error is.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!