필터 지우기
필터 지우기

how to creat this vector K?

조회 수: 2 (최근 30일)
benghenia aek
benghenia aek 2021년 1월 30일
댓글: Rik 2021년 1월 30일
A=[1 3 9 10 -1 4 5 2 3 15 1];
B=[10 15] and his index [4 10]
how to creat this vector k?
K=[NaN NaN 9 10 -1 NaN NaN NaN 3 15 1]
  댓글 수: 3
benghenia aek
benghenia aek 2021년 1월 30일
I just look for the values before and after the max in vector A
Rik
Rik 2021년 1월 30일
That is a different question. Do you want to find the maximum value? Then you should read the documentation for the max function. Matlab has very good documentation, it is one of the things I consider being an advantage over their competition.

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

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by