% test_patch.m

clear; close all;

% Define vertices
vertices = [
    1, 0, 0;  % vertice #1
    0, 2, 0;  % vertice #2
    0, 0, 3]; % vertice #3

% Define faces
faces = [
    1, 2, 3]; % face #1

% Draw patch
figure(1);
patch('Faces', faces, 'Vertices', vertices, 'FaceColor', 'y');

% Axes settings
xlabel('x'); ylabel('y'); zlabel('z');
axis vis3d equal;
view([142.5, 30]);
camlight;
grid on;