The ability to create a scatter plot of multiple data with a single call to SCATTER function is not available in MATLAB. The help documentation on the SCATTER function mentions that vectors X and Y must be of the same length.
To work around the limitation, plot individual data using separate calls to SCATTER as shown below:
scatter(var(:,1),var(:,2));
hold on
scatter(var(:,1),var(:,3));
scatter(var(:,1),var(:,4));
scatter(var(:,1),var(:,5));
Best Answer