MATLAB: Create a Scatter plot from a cell array

cell arrayscatter plot

I have a cell and array of 336×4. The values in column 2 and 3 are correlated to one another. How do I create a scatter plot to show this with the values from column 2 on the y axis and from 3 on the x axis.

Best Answer

load CS06
x=cell2mat(CS06(:,2))
y=cell2mat(CS06(:,3))
scatter(x,y)