Error using def (line 2) Not enough input arguments.

the error is solved.

댓글 수: 2

How are you calling this function?
Am kind of new to matlab, i dont know how to call a function. Can you help me?

댓글을 달려면 로그인하십시오.

답변 (1개)

Wayne King
Wayne King 2012년 10월 3일
편집: Wayne King 2012년 10월 3일

0 개 추천

At the command line, type
>>edit def
and then copy and paste your function in the editor window. Save the file as def.m in a folder that is on the MATLAB path. You can add the folder to the path with addpath(), or the pathtool
>>pathtool
If you have properly added the folder, you should be able to enter
>>which def
and see the path to your function. Then to call the function
>> x = [1 2];
>> F = def(x);
You should read the MATLAB Getting Started material.

카테고리

도움말 센터File Exchange에서 Search Path에 대해 자세히 알아보기

질문:

2012년 10월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by