user2861089
user2861089

Reputation: 1235

Make marker size proportional to data in scatterplot Matlab

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.

Suggestions? Thanks!

Upvotes: 1

Views: 894

Answers (1)

David
David

Reputation: 8459

Simply use

scatter(xData,yData,zData)

Upvotes: 2

Related Questions