I've been trying to make a graph but it comes out blank when I run it. The code does not have an issue.

답변 (1개)

Steven Lord
Steven Lord 2022년 6월 3일

0 개 추천

How long is your t vector?
L = 0.01;
Rth = 8000;
Thao = L/Rth
Thao = 1.2500e-06
delta = Thao/(1*10^-6)
delta = 1.2500
t = 0:delta:5*Thao
t = 0
Since taking one step of length delta from the starting point (0) takes you past the endpoint of the colon operation (5*Thao) the vector t only has one element. So you're only plotting one point and you're plotting without a marker. What happens if we plot it with a marker?
If = 5/2000;
I = If*exp(-t/Thao);
plot(t, I, 'ro')

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2022년 6월 3일

답변:

2022년 6월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by