hey, could somebody please help me understand and resolve this error?
2 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1496824/image.png)
采纳的回答
Walter Roberson
2023-9-29
function y = inputSource(~)
is not how you would define a function that accepts more than one input parameter but ignores the inputs. Each ~ in the calling sequence ignores exactly one input parameter.
You should use one of:
function y = inputSource(~,~,~)
to ignore 1, 2, or 3 input parameters. Or you should use
function y = inputSource(varargin)
to accept any number of input sources (not actually ignoring them completely, but you do not have to use varargin in your code)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fortran with MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!