Hi evry one . Howe can i plot these ?

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

1 Comment

Azhi sabir
Azhi sabir on 27 Apr 2017
Edited: Azhi sabir on 27 Apr 2017
Dear Must use ezplot not use pot

Sign in to comment.

Answers (1)

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')

Tags

Asked:

on 26 Apr 2017

Edited:

on 27 Apr 2017

Community Treasure Hunt

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

Start Hunting!