Delete element of an array on the basis of other arrays

조회 수: 1 (최근 30일)
luca
luca 2019년 10월 14일
댓글: luca 2019년 10월 14일
Hi given arrays
Y= [175 175 175 175 175 175 175 175 175 175 175 175];
SETT=[178 130 120 140 100 160 179 165 157 140 130 180 140];
and
T = [25 60 50 40 30 30 30 35 10 34 23 45 12];
Considering each column, I want to create a new vector U where I put just the value of T where the element on the saem column of SETT does not exceed the value in Y.
So in this case I want to obtain
U=[60 50 40 30 30 35 10 34 23 12].
May someone helo me with the code?

채택된 답변

madhan ravi
madhan ravi 2019년 10월 14일
  댓글 수: 2
madhan ravi
madhan ravi 2019년 10월 14일
You have asked some advanced questions before, but I have no idea why you were struck in this one. I suggest you to do MATLAB onramp course to understand the basics of MATLAB.
luca
luca 2019년 10월 14일
thanks for the advice madhan!!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by