Advertisement
franciscominajas

exp-11

Mar 2nd, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.28 KB | None | 0 0
  1. clc;
  2. clear all;
  3. close all;
  4. %una forma mas elegante de escribir relaciones
  5. F = inline('((x+5)^2)/(4+2*x^2)')
  6. %definimos el rango a utilizar
  7. X=[-1:1:2];
  8. %recorremos la ecuacion y obtenemos los datos
  9. n=size(X,2);
  10. for i=1:n
  11.     Y(i)=F(X(i));
  12. end
  13. %graficando
  14. fplot(X,Y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement