Hi evry one . Howe can i plot these ?

How plot thise? Y=(x.^2-4*x+3)/(x.^2-6*x+8)

댓글 수: 1

Azhi sabir
Azhi sabir 2017년 4월 27일
편집: Azhi sabir 2017년 4월 27일
Dear Must use ezplot not use pot

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

답변 (1개)

James Tursa
James Tursa 2017년 4월 26일

2 개 추천

E.g., fixing up one operator in your equation
x = -10:0.01:10;
Y = (x.^2-4*x+3)./(x.^2-6*x+8); % <-- You needed to use element-wise divide operator ./ here
plot(x,Y)
grid on
set(gca,'Ylim',[-2 4])
title('Y = (x^2-4*x+3) / (x^2-6*x+8)')
xlabel('x')
ylabel('Y')

카테고리

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

태그

질문:

2017년 4월 26일

편집:

2017년 4월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by