Why fill function doesn't work?
22 ビュー (過去 30 日間)
古いコメントを表示
alexandre xavier
2013 年 12 月 11 日
コメント済み: Alexandre Xavier
2020 年 11 月 16 日
Dear folks, I am trying to fill polygons, but the fill function does not working. Does any body know if this function have limitations for the number of points? My code is:
load test
fill(x,y,'r')
Thanks,
Alexandre
0 件のコメント
採用された回答
the cyclist
2013 年 12 月 12 日
Because of the NaN at the end of the vector. Try this
load test
x(end) =[];
y(end) =[];
fill(x,y,'r')
3 件のコメント
Doganay Karatas
2020 年 11 月 14 日
Error using fill
Not enough input arguments.
Why do i get this error??
HERE IS MY CODE
t=0:pi/50:2*pi;
figure(1)
plot(t,sin(t))
figure (2)
fill (t,sin(t)),('g')
figure (3)
stairs (t,sin(t))
figure (4)
bar (t,sin(t))
end
Alexandre Xavier
2020 年 11 月 16 日
This will work
t=0:pi/50:2*pi;
figure(1)
plot(t,sin(t))
figure(2)
fill(t, sin(t), 'r')
figure(3)
stairs(t,sin(t), 'r')
figure(4)
bar(t,sin(t))
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Shifting and Sorting Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!