what is better matlab function or symfun
1 view (last 30 days)
Star Strider on 18 Feb 2017
Neither plot works with your code. Try fcontour instead.
Otherwise, you have to vectorise your anonymous function for it to work without error:
The symfun version works without modification. If you want to use it as an anonymous function without having to vectorise it yourself, use the matlabFunction function:
fimplicit(f, [-10 10],'bp')
I added the ‘-1’ so it will actually plot something.