Info

This question is closed. Reopen it to edit or answer.

Not enough input arguements error

1 view (last 30 days)
hnh paritosh
hnh paritosh on 12 Mar 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi I am a beginner in MATLAB and having a problem. Here is my function
function [] = FingerprintFn(src_dir,path)
files=dir(path);
n=length(files);
nn=randi(n);
[filename, type]=strtok(files(nn).name,'.');
I=imread([src_dir,files(nn).name]);
imshow(I);
end
The files and src_dir are already defined and are present in workspace.
files = 'C:\Users\abc\123.bmp';
%and
src_dir = 'C:\Users\abc\';
The MATLAB displays the error in line that Not enough input arguements.
Please help :( :(

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!