Reputation: 1235
I have a scatter plot in Matlab scatter(xData,yData) I want each marker size to be proportional to a given array of data (zData), where zData is the same length as xData and yData.
scatter(xData,yData)
zData
Suggestions? Thanks!
Upvotes: 1
Views: 894
Reputation: 8459
Simply use
scatter(xData,yData,zData)
Upvotes: 2