How to make vector array value zero after certain index?
36 views (last 30 days)
I have an array from Simlunk which is 1001x4.
The first, second, third and fourth colum of array conatins the value of current, voltagee, Irradaince and Temperature.
Let say at index (555,1), the value of current start to becomes negative and keep on going in negative domain.
How do I make the value of current and volatge zero once the current start to get negative i.e. after value of current at (555,1)?