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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by