What is the difference between creating creating functions using function handle and declaring syms?

前端 未结 0 1933
忘了有多久
忘了有多久 2021-01-27 08:57

It seems that, to create a function f(x,y)=x+y, I can have two approaches.

  1. syms x y; f(x,y) = x+y
  2. f = @(x,y) x+y

They seem very similar, and

相关标签:
回答
  • 消灭零回复
提交回复
热议问题