ignoring the negative values....

11 ビュー (過去 30 日間)
Offroad Jeep
Offroad Jeep 2015 年 10 月 7 日
コメント済み: Offroad Jeep 2015 年 10 月 7 日
Hi to all ...........
a = rand(1,10)-0.5 cumsum(a)
the command uses all the positive and negative values generated , I want to ignore all the negative values generated once the cumsum command is executed. NOTE(negative values cannot be ignored and is being use in some other command)
Regards.....

採用された回答

Thorsten
Thorsten 2015 年 10 月 7 日
編集済み: Thorsten 2015 年 10 月 7 日
cumsum(a(a > 0))
  1 件のコメント
Offroad Jeep
Offroad Jeep 2015 年 10 月 7 日
thanks Thorsten..... can i have your email contact please

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by