Error using def (line 2) Not enough input arguments.
1 view (last 30 days)
Show older comments
the error is solved.
2 Comments
Answers (1)
Wayne King
on 3 Oct 2012
Edited: Wayne King
on 3 Oct 2012
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.
0 Comments
See Also
Categories
Find more on Search Path in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!