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!