How can I plot acquired matrix data

1 view (last 30 days)
Sam Hurrell
Sam Hurrell on 12 Nov 2020
Answered: KSSV on 12 Nov 2020
I have multiple data sets as matrix's: (x,y,C),(x,z,C), or (y,z,C). They are all 2D data slices exported from comsol, with coloumns 1-2 as the axis (x/y/z) and the 3rd column as the output value 'C'. The maximum axis value is x=0.1, y=0.2, z=0.5, and the min values are all 0. Values usually have up to 16 decimal places but should be rounded to 3dp. I want to present each matrix as either a pcolor 2D map or a surf plot, with the result being C. A typical matrix would look like this:
X Y C
0.04 0.069608 0.082662
0.043 0.074804 0.115348
0.045 0.074804 0.119363
0.048 0.076536 0.134744
(but the largest dataset is ~135,000 rows)

Answers (1)

KSSV
KSSV on 12 Nov 2020

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!