حال دستورات زیر زا اجرا میکنیم:
%Solves a sample Dirichlet problem for the heat equation in a rod,
%this time with variable conductivity, 21 mesh points
m = 0; %This simply means geometry is linear.
x = linspace(-5,5,21);
t = linspace(0,4,81);
sol = pdepe(m,@pdex,@pdexic,@pdexbc,x,t);
%...