Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. if length(x) ~= length(fx)
  2. error('Inputs are not the same length');
  3. end
  4.  
  5. if isvector(x) ~= 1
  6. error('Input x is not a vector');
  7. end
  8.  
  9. if isvector(fx) ~= 1
  10. error('Input fx is not a vector');
  11. end
  12.  
  13. if isnumeric(x) ~=1
  14. error('x does not contain numeric values');
  15. end
  16.  
  17. if isnumeric(fx) ~=1
  18. error('fx does not contain numeric values');
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement