maxloc

Replicates the functionality of maxloc in fortran.

이 제출물을 팔로우합니다

%function out=maxloc(x,dim)
%
% Replicates the functionality of maxloc in fortran.
%
% INPUTS: x -> data variable
% dim -> (optional) dimension upon which to operate
% (same in Fortran and Matlab)
%
% OUTPUTS: out -> set to second output of Matlab's max() if dim is specified
% otherwise, is the maximum location for the entire array
% returned as a cell array resulting from ind2sub
% this could then be used as a subscript list
%
% EXAMPLES: a=magic(5); b=maxloc(a); a(b{:}),b
% b=maxloc(a,1)

인용 양식

Ben Barrowes (2026). maxloc (https://kr.mathworks.com/matlabcentral/fileexchange/19331-maxloc), MATLAB Central File Exchange. 검색 날짜: .

카테고리

Help CenterMATLAB Answers에서 Fortran with MATLAB에 대해 자세히 알아보기

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.0.0.0