- #1
member 428835
Hi PF!
I am trying to solve a pde in MATLAB and started by using the generic code mathwork supplies and then augmenting for my purpose. After defining the function below and run the script, i can do anything to the ##f## and nothing changes. I can literally delete the line and still I receive the same plot. Any idea why?
I am trying to solve a pde in MATLAB and started by using the generic code mathwork supplies and then augmenting for my purpose. After defining the function below and run the script, i can do anything to the ##f## and nothing changes. I can literally delete the line and still I receive the same plot. Any idea why?
Code:
function [c,f,s] = pdex1pde(x,t,u,DuDx)
c = 1;
f = DuDx;%pdedu/dx
s = u;