dealers

deal inputs to outputs. caters for cases where the number of input and output arguments do not match
154 Downloads
Aktualisiert 25 Aug 2011

Lizenz anzeigen

% dealers - A dummy function for assigning inputs to outputs
%
% varargout = dummyfun(varargin)
%
% Assigns the inputs to the outputs. It is very similar to matlab's deal
% function but it caters for case where the number of inputs and outputs
% do not match.
%
% Example
% % Equal inputs and outputs
% % All inputs are assigned the output values
% [a,b,c] = dealing(1,2,3)
%
% % More inputs than outputs
% % The first 2 inputs are assigned to the outputs
% [a,b] = dealing(1,2,3)
%
% % More outputs than inputs
% % The first 2 outputs are assigned the input values
% % The remaining outputs are assigned to the last output
% [a,b,c] = dealing(1,2)
%
% % Useful for preventing errors when using anonymous function
% h = @(x,y,z)dealers(x,y,z);
% [a,b] = h(x,y,z)
%
% See also
% dealers
% deal
%

Zitieren als

Pierce Brady (2024). dealers (https://www.mathworks.com/matlabcentral/fileexchange/32686-dealers), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2009a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Antennas, Microphones, and Sonar Transducers finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0