Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

assign scatter points into each grid and show probability in colorbar

Asked by jason

jason (view profile)

on 2 Apr 2013

hi everyone, I currently generated large amount of points, how can i divide the plane into many small grids and assign the points included as that specific grid, then show the probability of hitting the grids as different color with a colorbar next to the figure. so the result i am trying to get is different grid has different color showing the probability. thank you very much

0 Comments

jason

jason (view profile)

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson

Walter Roberson (view profile)

on 2 Apr 2013
Accepted answer

2 Comments

jason

jason (view profile)

on 3 Apr 2013

thanks for your help, this is what I meant, but after trying it, I think it will be better to use 3d for my case. Now im trying to figure out how to place an image as the background of x-y plane in hist3, I kinda stucked

Walter Roberson

Walter Roberson (view profile)

on 3 Apr 2013

You can surf() the histogram results.

Walter Roberson

Walter Roberson (view profile)

Contact us