フィルターのクリア

plot function Too many input arguments.

3 ビュー (過去 30 日間)
kim
kim 2013 年 4 月 3 日
function [output_noise] = uniformnoise
range=0.003;
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
////////// what happen?

回答 (2 件)

Image Analyst
Image Analyst 2013 年 4 月 3 日
Just before plot(), put this line:
which -all plot
tell us what shows up in the command window.

Ahmed A. Selman
Ahmed A. Selman 2013 年 4 月 3 日
編集済み: Ahmed A. Selman 2013 年 4 月 3 日
This function works fine and nothing's wrong, it worked here correctly. The output_noise is (1 by 3000) and its maximum is ~ 1 e-4 and min ~ -2e-7.
But your code doesn't have the ( <- ) in the line:
plot(i, output_noise) <-
.. am I right? Delete this or put % before it as in:
plot(i, output_noise) % <-
This is the only change I've made :)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by