While executing the plotdata file in octave I'm getting the following error:
plotData error: 'x' undefined near line 7 column 6 error: called from plotData at line 7 column 1 plotData error: 'y' undefined near line 7 column 6 error: called from plotData at line 7 column 1
My code:
function plotData(x, y)
figure;
plot(x,y,'rx','MarkerSize',10);
ylabel('Profit in $10,000s');
xlabel('Population of city in 10,000s');
end