how to plot signal (t,g) by using editor window command?

조회 수: 19 (최근 30일)
Perwez Alam
Perwez Alam 2018년 12월 4일
답변: KSSV 2018년 12월 4일
How to write editer command to plot (t,g)
Please help me.
thanking You

답변 (1개)

KSSV
KSSV 2018년 12월 4일
w = 2*pi*50 ;
phi = 10*pi/180 ;
t = 0:0.1:60 ;
N = 3 ;
g = zeros(N,length(t));
for n = 1:N
g(n,:) = sin((2*n+1)*w*t+phi)/(2*n+1) ;
end
% do the sum
g = 1/2+sum(g,1) ;
plot(t,g)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by