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.

Categories

Find more on Function Creation in Help Center and File Exchange

Asked:

on 27 Sep 2018

Answered:

on 28 Sep 2018

Community Treasure Hunt

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

Start Hunting!