Skip to content

Instantly share code, notes, and snippets.

@soypat
Last active May 26, 2019 18:08
Show Gist options
  • Save soypat/44004ecdb88317970406c7cfaf82e544 to your computer and use it in GitHub Desktop.
Save soypat/44004ecdb88317970406c7cfaf82e544 to your computer and use it in GitHub Desktop.
Min/Max index finder for matrix
%% Find minimum amplitud
mini=min(min(M));
index=find(M==mini);
i = ceil(index/Nb);
index=find(M'==mini);
j = ceil(index/Nh);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment