How do I replace elements of matrix which are greater than 9 with value 9 without using for loop?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Satyajit Ghosh
am 1 Okt. 2021
Kommentiert: Satyajit Ghosh
am 1 Okt. 2021
I am working on an optimization problem. To make it run faster I need to do calculation inside defined function using matrices and not using foor loops. In that context I have this problem where a row matrix elements need to replaced by 9 if it is greater than 9. Can this be done using some matrix notation or I have to use for loop.
Thanks
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays 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!