length(find((XM(2:end)>126.5 & XM(1:end-1)<126.5)| (XM(2:end)<126.5 & XM(1:end-1)>126.5)));
1 次查看(过去 30 天)
显示 更早的评论
Can anyone tell me if in this function the terms XM (2: end) and XM (1: end-1) indicate two successive elements of the vector ?. If so, why? thank you in advance
0 个评论
回答(2 个)
KALYAN ACHARJYA
2022-2-23
编辑:KALYAN ACHARJYA
2022-2-23
It represent the total elements in the vector (Except First One)
XM(2:end)
It represent the total elements in the vector (Except last one)
XM(1:end-1)
Indicate two successive elements of the vector (Multiple ways)
XM(1:2)
XM(i:i+1)
XM(end-1:end)
.....
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!