## The data in the example file was saved using MATLAB. ## The data contains finite element geometric data for an arbitrary structure ## and information about its doping profile. ## For the script to work, put it in the same folder as the processdata.h5 HDF5 file. ## The finite element data contains three vetrex matrices x, y, z containing the x, y, and z ## coordinates of randomly placed data points inside the structure. ## It contains a connectivity matrix 'elements' that generates a finite element mesh ## inside the structure using tetrahedrons. ## It also contains a 'doping' matrix that contains the doping values at each ## data points inside the object. clear; filename = "processdata.h5"; # Retrieving the File Structure data = h5info(filename); # Read in connectivity matrix C = h5read(filename,data.Datasets{2}.Name); # Read in doping profile N = h5read(filename,data.Datasets{1}.Name); ?"Unit of doping is "+ h5readattr(filename,data.Datasets{1}.Name,data.Datasets{1}.Attributes{2}.Name); # Read in the vertices x = h5read(filename,data.Groups{1}.Datasets{1}.Name); y = h5read(filename,data.Groups{1}.Datasets{2}.Name); z = h5read(filename,data.Groups{1}.Datasets{3}.Name); ?"Unit of dimension is "+ h5readattr(filename,data.Groups{1}.Datasets{1}.Name,data.Groups{1}.Datasets{1}.Attributes{2}.Name);