I need to iterate through a vector, A, using a while loop. Although, I must replace every negative element with 0 until I reach an element with value 0 or checked all elements in the vector.

类别

帮助中心File Exchange 中查找有关 Function Creation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by