フィルターのクリア

how to delete this error??

1 回表示 (過去 30 日間)
zero
zero 2018 年 2 月 14 日
回答済み: Star Strider 2018 年 2 月 14 日
>> n=0:9; >> x=[1 1 1 1 1 1 1 1 1 1]; >> y=flip(x); >> xe=0.5*(x+y); >> subplot(n,xe)

回答 (1 件)

Star Strider
Star Strider 2018 年 2 月 14 日
The subplot indexing obeys the same rules as matrix indexing, that is the indices must be integers greater than 0. You are also not addressing the subplot calls correctly.
Try this:
n=1:10;
x=[1 1 1 1 1 1 1 1 1 1];
y=flip(x);
xe=0.5*(x+y);
for k = 1:numel(n)
subplot(2,5,n(k))
plot(xe)
end
Experiment to get the result you want, and please read the subplot documentation.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by