Why the line is not shown in the graph?

조회 수: 1 (최근 30일)
Nurul Shahizan Rudzuanazmi
Nurul Shahizan Rudzuanazmi 2020년 2월 5일
편집: Rik 2020년 2월 5일
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