フィルターのクリア

Error using ==> plot Too many input arguments.

1 回表示 (過去 30 日間)
kim
kim 2013 年 4 月 3 日
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?

回答 (2 件)

Ilham Hardy
Ilham Hardy 2013 年 4 月 3 日
Both
size
and
i
are a matlab internal function. Do not name your variable with this name..
  1 件のコメント
kim
kim 2013 年 4 月 3 日
thank you very much!! I'll take it. ^^

サインインしてコメントする。


Walter Roberson
Walter Roberson 2013 年 4 月 3 日
It appears that you have created your own plot.m that is interfering with MATLAB's plot()
  1 件のコメント
kim
kim 2013 年 4 月 3 日
thank you very much!! I'll take it. ^^

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by