Finding the elements in a list that are less than their successor along with their indices – mathematica.stackexchange.com

Please suggest how to write following MALTAB code in Mathematica k=1; for j=1:bb-1 if (aa(j)-aa(j+1))<0 cc(k)=aa(j); dd(k)=j; k=k+1; end end Here aa is some array and bb is the length of aa.

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Finding the elements in a list that are less than their successor along with their indices – mathematica.stackexchange.com"