- #1
Spectre32
- 136
- 0
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
as being the problem.
This is what my function looks likes:
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
Code:
"plot(xset, yset,plotsymbol ,xname,yname,title);"
This is what my function looks likes:
Code:
function [] = plotfunction(xset,yset,plotsymbol,choice,xname,yname,title);
Any help would be appericated