Got Questions? Get Answers.
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

Thread Subject:
volumetric temp-salt analysis

Subject: volumetric temp-salt analysis

From: mwave Markovic

Date: 10 May, 2010 09:41:05

Message: 1 of 2

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

Subject: volumetric temp-salt analysis

From: Sean

Date: 10 May, 2010 11:40:22

Message: 2 of 2

"mwave Markovic" <michaela.markovic@bsh.de> wrote in message <hs8kbh$39b$1@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!

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us