フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

max function does not work with zero

1 回表示 (過去 30 日間)
Søren Schwartz
Søren Schwartz 2015 年 11 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello I am trying to use the max function, but it will not work. I have attached my log file. I have tried using this function maxStcev=max(Stcev'-K,0); (line 52), but I keep getting negative values.
I have then tried using a for loop with if statement, but this results in error: "Index exceeds matrix dimensions.
Error in mccev (line 45) if (M1(1,o)<0)" Can someone see what I am doing wrong? I want t have a vector only with positive values. Regards, Søren

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by