From: mwave Markovic on 10 May 2010 05:41 hi, i want to create a grid (matrix) for y=temp (9°C - 20 °C onestep) and x=salt (26.5 PSU - 35.5 PSU onestep) to count my datapoints (1000000). f.e. a datapoint salt 31 temp 11 matlab should put this datapoint in the cell for salt(31 -32 PSU) and temp(11-12 °c) and at the end of this counting matlab should draw 3-D mesh plot. thanks
From: Sean on 10 May 2010 07:40 "mwave Markovic" <michaela.markovic(a)bsh.de> wrote in message <hs8kbh$39b$1(a)fred.mathworks.com>... > hi, > i want to create a grid (matrix) for y=temp (9°C - 20 °C onestep) and x=salt (26.5 PSU - 35.5 PSU onestep) to count my datapoints (1000000). f.e. a datapoint salt 31 temp 11 matlab should put this datapoint in the cell for salt(31 -32 PSU) and temp(11-12 °c) and at the end of this counting matlab should draw 3-D mesh plot. > > thanks Hints: >>help meshgrid >>help mesh Why are you using 0.5 resolution if your data points are integers; or was that just the example? Also, do you have duplicate data points and if so: how are you going to handle that? mean median...? If there are not multiple duplicate points and the mesh is completely full. i.e. not sparsely populated then: >>numel(1 output from meshgrid) must = 1000000. This means there will not be a 1step increment in your mesh as you have implied above. Good luck!
|
Pages: 1 Prev: MATLAB Financial Engineer - London Next: jitter & shimmer |