dealers

版本 1.0.0.0 (1.4 KB) 作者: Pierce Brady
deal inputs to outputs. caters for cases where the number of input and output arguments do not match
154.0 次下载
更新时间 2011/8/25

查看许可证

% 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
%

引用格式

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

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Antennas, Microphones, and Sonar Transducers 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0