create vector with for loop

1 回表示 (過去 30 日間)
Abdullah Alawad
Abdullah Alawad 2021 年 8 月 19 日
回答済み: Cris LaPierre 2021 年 8 月 19 日
Create a loop to scan through the intersect vector for “true” values ( equal 1). Add an entry to a new vector that is the index of the “true” value. Also increment a counter that will be used to determine the number of intersections.

回答 (1 件)

Cris LaPierre
Cris LaPierre 2021 年 8 月 19 日
See the part in Ch 13 of MATLAB Onramp that covers for loops.

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by