function varargout = rot90(varargin)
%ROT90 Rotate distributed array matrix 90 degrees.
%   ROT90(A) is the 90 degree counterclockwise rotation of matrix A.
%   ROT90(A,K) is the K*90 degree rotation of A, K = +-1,+-2,...
%   
%   Example:
%       M = 500;
%       N = 1000;
%       D1 = distributed.rand(M,N);
%       D2 = rot90(D1)    % 90 degree counterclockwise rotation
%       D3 = rot90(D1,-1) % 90 degree clockwise rotation
%   
%   See also ROT90, DISTRIBUTED, DISTRIBUTED/RAND.
%   


%   Copyright 2012-2019 The MathWorks, Inc.

[varargout{1:max(nargout, 1)}] = distributedutil.distributedSpmdWrapper( @rot90, varargin{:} );
