Preparing 3d dataset for visuallation

Hello,
I have a dataset of concentration measurements which occured at 7322 separate times (rows of data) and 192 different sizes of particles (columns of data).
The data is presently in a table format, row one is the particle size and column one are the observation times:
Although the date intervals are equal, the particle size intervals are not.
My goal is to produce a 3d contour map or similar which shows concentration of these various particle sizes over time. Can someone please assist with the following questions?:
  • is a table the appropriate format? I have considered converting into a matrix by converting the date/time into a numerical format, though unsure how to capture the variables (particle size)
Any references would be helpful. Many thanks in advance.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 30 de Ag. de 2020
x = YourTable.Date;
y = YourTable{1,2:end};
z = YourTable{2:end,2:end}.';
surf(x, y, z, 'edgecolor', 'none')
This uses time as your first independent axes. Some people would suggest that the structure of your data should instead be read as
y = YourTable.Date;
x = YourTable{1,2:end};
z = YourTable{2:end,2:end};
surf(x, y, z, 'edgecolor', 'none')
which maps the vertical axes in the table to the vertical axes in the plot.

1 comentario

Natalia Cross
Natalia Cross el 30 de Ag. de 2020
Thank you, that's been helpful - are you familiar with what plotting function might generate something similar to this? (where the colour relates to concentration values, y axis is particle size and x is date):

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 30 de Ag. de 2020

Comentada:

el 30 de Ag. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by