how to plot signal (t,g) by using editor window command?
1 view (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198231/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198232/image.png)
Please help me.
thanking You
Answers (1)
KSSV
on 4 Dec 2018
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)
0 Comments
See Also
Categories
Find more on Signal Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!