This repository has been archived on 2021-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
NC/mp4/Project_4_Maggioni_Claudio/datasets/getGraphs.m

30 lines
605 B
Mathematica
Raw Normal View History

2020-11-04 13:59:14 +00:00
function [Barth,Airfoil,Crack] = getGraphs()
% function to get the Adjacency matrix and the coordinate list of various graphs
% dimosthenis.pasadakis@usi.ch
% ICS, USI.
clear all;
close all;
addpath Meshes
%
load('barth.mat');
Barth.W = Problem.A;
Barth.Pts = Problem.aux.coord;
%
load('airfoil1.mat');
Airfoil.W = Problem.A;
Airfoil.Pts = Problem.aux.coord;
%
load('crack_dual.mat');
Crack.W = Problem.A;
Crack.Pts = Problem.aux.coord;
figure;
subplot(131)
gplotLength(Barth.W,Barth.Pts,2);
subplot(132)
gplotLength(Airfoil.W,Airfoil.Pts,2);
subplot(133)
gplotLength(Crack.W,Crack.Pts,2);
end