Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. function B=price_obli(z)
  2. B=exp(-z*linspace(1,10,10))*[linspace(3,3,9),103]'
  3. endfunction
  4.  
  5. c = [3 3 3 3 3 3 3 3 3 103]
  6. t = [1 2 3 4 5 6 7 8 9 10]
  7.  
  8. y=0:0.001:0.05
  9.  
  10. plot(y,price_obli(y))
  11.  
  12. error: price_obli: operator *: nonconformant arguments (op1 is 1x51, op2 is 1x10)
  13. error: called from
  14. price_obli at line 2 column 26
  15. error: evaluating argument list element number 1
  16. error: called from
  17. price_obli at line 2 column 26
  18. error: evaluating argument list element number 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement