Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)

Respuesta aceptada

Walter Roberson
Walter Roberson el 29 de Sept. de 2023
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)

Más respuestas (0)

Categorías

Más información sobre Fortran with MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by