Comparison of specific values from the same matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
stelios loizidis
am 3 Okt. 2020
Kommentiert: stelios loizidis
am 3 Okt. 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.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spline Postprocessing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!