can anyone tell me what input arguments in following actually?what input data i have to give to run it

here is my code,
Where i am getting error of not enough input argumnets,
function r = vq(d,k)
e=0.01;
r = mean(d,2);% getting error here
dpr=10000;
as i am new to matlab & this code too,as i am running it from sources,
dont't know how to run it properly,
so help me out,
thanks a lot in adv

 Réponse acceptée

Make sure you haven't created your own mean.m file that is shadowing the built-in mean function included in MATLAB. You can check this using which.
which -all mean
You should see only files in directories located under matlabroot. If you see a file you wrote in a working directory, rename that file and check if your code starts working.

4 commentaires

thanks alot steven for focusing there,
i checked it,
It's not available in my directory,
now what i have to do for that mean file?
@Pooja: I do not understand. What do you get as output of the which command?
jan simon it's about checking mean function available is available there or not in my selected directory.
also all i want is how i get that mean function file?
as it's not there in my data.
so is it avilable there with u people please mail me or tell me here how to create it with what type of code in it.
Tysm in adv

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by