Borrar filtros
Borrar filtros

Comparison of specific values from the same matrix

1 visualización (últimos 30 días)
stelios loizidis
stelios loizidis el 3 de Oct. de 2020
Comentada: stelios loizidis el 3 de Oct. de 2020
Hello.
I have the following problem: I have a table Z (1X100). The first value is always zero. I want to find among the other values which is the smallest and from which position of the matrix it comes. I wrote the code below but it does not work.
for w=1:100
if Z>0
[min_price,Index]=min(Z)
end
end
Your help is important.

Respuesta aceptada

KSSV
KSSV el 3 de Oct. de 2020
[val,idx] = min(Z(2:end))

Más respuestas (0)

Categorías

Más información sobre Spline Postprocessing 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