Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. function f2 = changefunction(f1)
  2. fs = func2str(f1);
  3. fs(fs=='+') = '*';
  4. f2 = str2func(fs);
  5. end
  6.  
  7. f = @(x) x+5;
  8. a = 5;
  9. g = @(x) x+a;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement