필터 지우기
필터 지우기

Three phase sinus wave plotting with degrees

조회 수: 3 (최근 30일)
Matthew Worker
Matthew Worker 2021년 5월 19일
답변: KSSV 2021년 5월 19일
Hello, I would like to plot three phase sinus wave with time perriod converted to degrees. I need to get all phases into 0-360 intveral instead of 0-1. Thanks for your help. For now i use this progam line to plot three phases sinus wave.
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
Example of how it looks. I need all three phases to get in 360 interval. Thank you.
.

채택된 답변

KSSV
KSSV 2021년 5월 19일
x=linspace(0,2*pi,60);
r=sin(x);
y=sin(x+2*pi/3);
b=sin(x+4*pi/3);
xd = x*360/(2*pi) ;
plot(xd,r,xd,y,xd,b)
grid on, box on
axis tight

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by