Hello, I woul like to ask how can edit my sinus wave time period, cause now i nor able to plot proper sinus wavew by method which i used. I am ussi this command line:
x=linspace(0,2*pi,60);
r=sin(x);
y=sin(x+2*pi/3);
b=sin(x+4*pi/3);
plot(x,r,x,y,x,b)
grid on, box on
and I am getting this. But need all three sinus waeforms in 1 time period. It woul be very usfell how to set it for me. Thank you in advance

 채택된 답변

KSSV
KSSV 2021년 5월 19일

0 개 추천

x1=linspace(0,2*pi,60);
r=sin(x1);
x2 = x1+2*pi/3 ;
y=sin(x2);
x3 = x1+4*pi/3 ;
b=sin(x3);
plot(x1,r,x2,y,x3,b)
grid on, box on

댓글 수: 5

Matthew Worker
Matthew Worker 2021년 5월 19일
Thank you. sorry foir my english i explained poorly, I need this one:
x=linspace(0,2*pi,60);
r=sin(x);
y=sin(x+2*pi/3);
b=sin(x+4*pi/3);
x1 = x/max(x) ; % Normalize the x-axes
plot(x1,r,x1,y,x1,b)
grid on, box on
Matthew Worker
Matthew Worker 2021년 5월 19일
Thank you! And one more question can i covert 1-time period to 360 degrees. 1 time = 360 degrees. Like in pic.
There is no need to tilt the degree numbers.
x = 0:1:360 ;
y = sind(x) ;
plot(x,y)
Matthew Worker
Matthew Worker 2021년 5월 19일
coudl you please show me how to do for all three phases, i tried to adapt previous formulas, but unsuccesfull. Thanks once more again.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2021년 5월 19일

댓글:

2021년 5월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by