필터 지우기
필터 지우기

Conditional approach in a matrix variables

조회 수: 1 (최근 30일)
Tino
Tino 2019년 5월 9일
댓글: Tino 2019년 5월 9일
Hi
Assuming I have the following matrices
Y = [ 4,6,8,4,3,.......n]
I want to compute a conditional statement that would go through each number and if it is greater than 10 the computation stops and if not it continues to go through
the array until the end.
Thanks for your help in advance
Regards
Tino

채택된 답변

madhan ravi
madhan ravi 2019년 5월 9일
find(Y>10,1,'first')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by