Why the line is not shown in the graph?

1 次查看(过去 30 天)
I am about to make "for loop" and plot 2 functions against frequency. When I run the code there is no error stated however, when the graph's window pop out it gives no result (blank graph). Is there anything that I miss in my loop? Or anything that I have to improve in the code?
Screenshot 2020-02-05 at 20.42.47.png

回答(1 个)

Rik
Rik 2020-2-5
编辑:Rik 2020-2-5
You are not indexing the trans variable inside your loop, which results in you overwriting the value every loop iteration. That means you are plotting a vector with a scalar, which you don't see, because you haven't set a marker.
Untitled.png

类别

Help CenterFile Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by