필터 지우기
필터 지우기

Graph window is blank

조회 수: 1 (최근 30일)
Sreenidhi Yeturi
Sreenidhi Yeturi 2021년 2월 24일
답변: Rik 2021년 2월 24일
function V_Gauss_Pulse(t, to, t_w)
tp = (t-to)^2/t_w^2;
vg = exp(tp);
plot (vg,t)

답변 (1개)

Rik
Rik 2021년 2월 24일
As most of the operation you perform don't work for most shapes of input data, I'm assuming you're calling this code with scalars.
What happens when you plot a line with a single point? You don't get a line. If you want to see a point, you need to change the default.
function V_Gauss_Pulse(t, to, t_w)
tp = (t-to).^2./t_w.^2;
vg = exp(tp);
plot(vg,t,'*')
end

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by