Undefined function 'signal' for input arguments of type 'double'.

5 ビュー (過去 30 日間)
Matlabuser
Matlabuser 2014 年 10 月 20 日
編集済み: Orion 2014 年 10 月 20 日
Hi everyone, I am working on a function, by using that I get the value of y. and then there is a command a=signal (y) and a1=amutual(a,L) Length of signal
can anyone plz tell me what is the meaning of these commands and because when I run It, I got "Undefined function 'signal' for input arguments of type 'double'"
Thanks
  1 件のコメント
Adam
Adam 2014 年 10 月 20 日
It is an unfortunate aspect of Matlab that the syntax for functions and variables is so interchangeable, to the extent that two things that should be clearly different not only use identical syntax, but the definition of one hides the other.
If 'signal' is neither a variable nor a function in your path then that is the error message you will get, but it is impossible for us to tell whether your intention was that 'signal' be a vector/array variable being indexed or a function with y as its argument.

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

採用された回答

Orion
Orion 2014 年 10 月 20 日
編集済み: Orion 2014 年 10 月 20 日
and is signal.m on your path ?
in matlab, try
which signal
if the answer is : 'signal' not found.
then you just need to add the path of the folder containing signal
addpath('C:\.....\YourFolder')

その他の回答 (1 件)

Orion
Orion 2014 年 10 月 20 日
編集済み: Orion 2014 年 10 月 20 日
Hi,
Matlab is telling you that it doesn't recognize signal as a function.
is signal a mfile you want to use ? or a matrix (in which case, you tried to access the yth element) ?

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by