www.gusucode.com > pde 案例源码 matlab代码程序 > pde/ConstantInitialConditionsForASystemExample.m
%% Constant Initial Conditions for System % Set different initial conditions for each component of a system of PDEs. %% % Create a PDE model for a system with five components. Import the % |Block.stl| geometry. model = createpde(5); importGeometry(model,'Block.stl'); %% % Set the initial conditions for each component to twice the component % number. u0 = [2:2:10]'; setInitialConditions(model,u0)