To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I'm working with the heat equation (PDE), and I'm unsure how to set up my boundary conditions in a Matlab script. I need to initialize the boundary condition U(x=0) = t(6-t)
dt = 0.01; % time step dx = 0.01; % distance step K=0.002; % the constant value
%initialize vectors for distances 0 to 5 and time 0 to 20 time = 0:dt:20; t = length(time); x = 0:dx:5; row = length(t); col = length(x);
% Initialize temperature array U = zeros(row,col);
initialize the surface boundary condition U(x=0) = t(6-t)
No products are associated with this question.