Spectre32
Oct4-04, 08:00 PM
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
plot(xset,yset,plotsymbol,xname,yname,title);
elseif choice == 2
semilogy(xset,yset,plotsymbol,xname,yname,title);
else choice == 3
loglog(xset,yset,plotsymbol,xname,yname,title);
end
It brings me too line 21 "plot(xset, yset,plotsymbol ,xname,yname,title);" as being the problem.
This is what my function looks likes:
function [] = plotfunction(xset,yset,plotsymbol,choice,xname,yna me,title);
Any help would be appericated
??? 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
plot(xset,yset,plotsymbol,xname,yname,title);
elseif choice == 2
semilogy(xset,yset,plotsymbol,xname,yname,title);
else choice == 3
loglog(xset,yset,plotsymbol,xname,yname,title);
end
It brings me too line 21 "plot(xset, yset,plotsymbol ,xname,yname,title);" as being the problem.
This is what my function looks likes:
function [] = plotfunction(xset,yset,plotsymbol,choice,xname,yna me,title);
Any help would be appericated