Error using ==> plot Too many input arguments.
Afficher commentaires plus anciens
function [output_noise] = uniformnoise
range=30;
size=3000;
output_noise(1:size)=0;
for i=1 : size
output_noise(i) = (rem(rand()*100,(2*range+1)) - range) * 0.0001;
end
i=1:1:size;
plot(i, output_noise) <-
end
??? Error using ==> plot
Too many input arguments.
Error in ==> uniformnoise at 11
plot(i, output_noise)
-- what's the matter?
1 commentaire
Walter Roberson
le 3 Avr 2013
Duplicates http://www.mathworks.co.uk/matlabcentral/answers/69656-plot-function-too-many-input-arguments -- please continue discussion there.
Réponses (2)
Ilham Hardy
le 3 Avr 2013
Both
size
and
i
are a matlab internal function. Do not name your variable with this name..
1 commentaire
kim
le 3 Avr 2013
Walter Roberson
le 3 Avr 2013
1 vote
It appears that you have created your own plot.m that is interfering with MATLAB's plot()
1 commentaire
kim
le 3 Avr 2013
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!