Info

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

Getting rid of built in vectorised function (Max)

1 回表示 (過去 30 日間)
jacob Mitch
jacob Mitch 2019 年 10 月 19 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I just wanted to see if its possible to get rid of max in the following whilst still producing the same result.
A=[1,2,3,4,5,6,7,8,9,1,2,3]
idy = [diff(A)>0,true] & [true,diff(A)<0];
[~,idx] = max(A); %get rid of max
idy(idx:end) = false;
  1 件のコメント
the cyclist
the cyclist 2019 年 10 月 20 日
It might help for you to describe conceptually what you are trying to do with the entire algorithm.

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by