Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Unexpected operator for 'plotinequality'

  1. Feb 18, 2013 #1
    When I try to operate this command
    plot(plot::Inequality(x^2 + y^2 < 1,x = -1.5..1.5, y = -1.5..1.5))
    It failed, and displayed
    Error: Unexpected MATLAB operator.
    How can I fix it?
     
  2. jcsd
  3. Feb 18, 2013 #2

    jedishrfu

    Staff: Mentor

  4. Feb 18, 2013 #3
  5. Feb 18, 2013 #4

    jedishrfu

    Staff: Mentor

    The reference below said that it only works in a MUPAD notebook and to try this:

    evalin(symengine, 'plot(plot::Inequality(x^2 + y^2 < 1,x = -1.5..1.5, y = -1.5..1.5))')

    http://www.mathworks.com/matlabcentral/answers/14607

    Doesn't work for me as I don't have these extensions and Im at MATLAB 2011b
     
  6. Feb 18, 2013 #5
    Thanks. I can use 'mphandle = mupad' to create a MuPAD notebook, and input the syntax.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook