it's plotting empty figures
古いコメントを表示
i'm trying to plot two figures but it's plotting empty figure.

1 件のコメント
Bhaskar R
2019 年 10 月 30 日
Actually it is not a problem of empty figures, there are errors. Code is wrong.
採用された回答
その他の回答 (1 件)
Walter Roberson
2019 年 10 月 30 日
Change the
plot(t,x(t))
to
plot(t,x(t),'*')
I admit that I am surprised that subplot() did not give you an error about illegal subplot number, as you are constructing t as a vector of numeric values that are seldom positive integers. Notice that your line assigning t= -tau:0.01:tau is overwriting the t of your for t loop...
カテゴリ
ヘルプ センター および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!