Borrar filtros
Borrar filtros

how to creat this vector K?

2 visualizaciones (últimos 30 días)
benghenia aek
benghenia aek el 30 de En. de 2021
Comentada: Rik el 30 de En. de 2021
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 comentarios
benghenia aek
benghenia aek el 30 de En. de 2021
I just look for the values before and after the max in vector A
Rik
Rik el 30 de En. de 2021
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by