hey, could somebody please help me understand and resolve this error?

1 回表示 (過去 30 日間)
Danikha Shyken
Danikha Shyken 2023 年 9 月 29 日
コメント済み: Danikha Shyken 2023 年 9 月 30 日

採用された回答

Walter Roberson
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)
  1 件のコメント
Danikha Shyken
Danikha Shyken 2023 年 9 月 30 日
I clearly understand now, thank you so much!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by