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.

 채택된 답변

Walter Roberson
Walter Roberson 2020년 8월 30일

0 개 추천

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

Natalia Cross
Natalia Cross 2020년 8월 30일
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):

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

2020년 8월 30일

댓글:

2020년 8월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by