Setting min and max values of an array
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I have the following array A=(1:5:500).
If the value in the array is less than max(A)/2 I need the value to be set to max(A)/2. After that I need it to continue to the final value of the array.
Can anyone suggest a solution?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!