Why am I get discontinuous plot?

조회 수: 18 (최근 30일)
Moj
Moj 2014년 11월 27일
편집: Azzi Abdelmalek 2014년 11월 27일
Why am I get discontinuous plot?
x = -2*pi:.1:2*pi;
y = 2e-6*sin(x).*cos(x)/(10.5e-12*sin(x).^2+13.8e-12*cos(x).^2);

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 11월 27일
편집: Azzi Abdelmalek 2014년 11월 27일
Use ./ instead of /
x = -2*pi:.1:2*pi;
y = 2e-6*sin(x).*cos(x)./(10.5e-12*sin(x).^2+13.8e-12*cos(x).^2);
plot(x,y)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by