Hi evry one . Howe can i plot these ?
Mostrar comentarios más antiguos
How plot thise? Y=(x.^2-4*x+3)/(x.^2-6*x+8)
1 comentario
Azhi sabir
el 27 de Abr. de 2017
Editada: Azhi sabir
el 27 de Abr. de 2017
Respuestas (1)
James Tursa
el 26 de Abr. de 2017
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')
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!