# hello i want to make a sinusoidal graph please help

1 view (last 30 days)
Saleh on 18 Oct 2022
Edited: Kevin Holly on 18 Oct 2022
hello i want to make a sinusoidal graph, with a title “Sinusoidal Graph”. The equation for the sinusoidal graph is and this must be plotted
from -pi/2 to pi/2: X = 6cos(2π*20t) + 2sin(2π*10t)
so,
title('Sinusoidal Graph')
plot(-pi/2 to pi/2:1000)
X = 6cos(2π*20t) + 2sin(2π*10t)
is it like this please help
##### 0 CommentsShow -2 older commentsHide -2 older comments

Sign in to comment.

### Accepted Answer

Kevin Holly on 18 Oct 2022
Edited: Kevin Holly on 18 Oct 2022
t=-pi/2:(pi/2)/1000:pi/2;
X = 6*cos(2*pi*20*t) + 2*sin(2*pi*10*t);
plot(t,X)
title('Sinusoidal Graph')
or
figure
t=linspace(-pi/2,pi/2,1000);
X = 6*cos(2*pi*20*t) + 2*sin(2*pi*10*t);
plot(t,X)
title('Sinusoidal Graph')
##### 0 CommentsShow -2 older commentsHide -2 older comments

Sign in to comment.

### Categories

Find more on Graph and Network Algorithms 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!