Skip to content

Instantly share code, notes, and snippets.

@ksomemo
Created May 27, 2017 16:49
Show Gist options
  • Save ksomemo/4885be72bd30b683321a5e7ce0c90bd5 to your computer and use it in GitHub Desktop.
Save ksomemo/4885be72bd30b683321a5e7ce0c90bd5 to your computer and use it in GitHub Desktop.
max args in octave matrix
[max_values row_indices] = max(magic(5));
[max_values col_index] = max(row_indices);
row_index = row_indices(col_index);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment