MATLAB: Error in scatter program

plotprogrammingscatter

Hi,
I am trying to plot the x and y variables in 'scatter' mode which is pre-defined in the MATLAB.
This is the error
Undefined function or variable "s".
Error in ==> scatter at 74
if isempty(s), s = 36; end
Can anyone please help me to get solved by this problem.
Thank you

Best Answer

It is not valid to pass only a single argument to scatter(). The minimum you can pass is two arguments, X and Y.
Related Question