[8406bc]: / MATLAB / plotBoneModels_example.m

Download this file

26 lines (21 with data), 774 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%PLOTBONEMODELS_EXAMPLE provides an example how to plot the VSD subjects.
%
% AUTHOR: Maximilian C. M. Fischer
% COPYRIGHT (C) 2022-2023 Maximilian C. M. Fischer
% LICENSE: EUPL v1.2
%
clearvars; close all
addpath(genpath('src'))
% Load subjects & meta data
subjectXLSX = 'res\VSD_Subjects.xlsx';
Subjects = readtable(subjectXLSX);
Subject = Subjects.ID{1};
patchProps.FaceAlpha = 1;
load(['..\Bones\' Subject '.mat'], 'B')
visualizeMeshes([B(1:end).mesh],patchProps)
anatomicalViewButtons('LPS')
axis off tight; view(0,0);
set(gcf,'Name',['VSD subject: ' Subject],'NumberTitle','off')
title('Scroll click: Rotate | Scroll: Zoom | Right click: Pan')
% [List.f, List.p] = matlab.codetools.requiredFilesAndProducts([mfilename '.m']);
% List.f = List.f'; List.p = List.p';