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

Matlab debugging Aid.

  1. Oct 4, 2004 #1
    Ok I'm workin on this porject and I just got this error:

    ??? Error using ==> plot
    Illegal parameter-value pair.

    Error in ==> plotfunction at 21
    plot(xset, yset,plotsymbol ,xname,yname,title);

    When I click on it to take me where the problem is, this is what I have there:

    % plot data according to type chosen by user

    if choice == 1
    elseif choice == 2
    else choice == 3

    It brings me too line 21
    Code (Text):
    "plot(xset, yset,plotsymbol ,xname,yname,title);"
    as being the problem.

    This is what my function looks likes:

    Code (Text):
    function [] = plotfunction(xset,yset,plotsymbol,choice,xname,yname,title);

    Any help would be appericated
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted