Error while calling a function
조회 수: 3 (최근 30일)
이전 댓글 표시
I have written a function which is working fine
The function is
function [dtmf]=dtmfdial(x);
Now i have made m file and these are contents of m file
% This is DTMFmain
yy=dtmfdial;
and when i run this main file by this command
dtmfmain(dtmfdial([2 3]))
I get this error
??? Attempt to execute SCRIPT dtmfmain as a function: E:\Installed\Matlab 2011\Work\DTMF\dtmfmain.m
Plz help I just want to execute my function through a m file
댓글 수: 0
답변 (1개)
Fangjun Jiang
2011년 10월 18일
Your dtmfmain.m is not a function. It's a M-script. You can't pass an input argument to a M-script.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!