Guest User

Untitled

a guest
Jan 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. disp('Solution Domain Range Input')
  2. prompt='lims='; lims=input(prompt);
  3. disp(' ')
  4.  
  5. lims=[-3 3 ] works fine, x axis range is from -3 to 3
  6.  
  7. lims=[-3 3 -3 3 ] gives error message
  8.  
  9. odes = diff(Y)== A*Y + B
  10. [xSol(t), ySol(t)] = dsolve(odes);
  11. xSolvpa = vpa(xSol)
  12. ySolvpa = vpa(ySol)
  13. fplot(xSolvpa, lims)
  14. hold on
  15. fplot(ySolvpa,lims)
  16.  
  17. Error using fplot (line 145)
  18. Invalid parameter '-3 3 -...'.
  19.  
  20. lims=[-1.1 1.5 -1 3]
  21. fplot(xSolvpa)
  22. axis(lims)
Add Comment
Please, Sign In to add comment