I have created a model using pdetool command and kept the model under a function with name 'heat.m' as follows:
function A = heat (B,~)
Model = createpde('thermal','transient');
C = B/3.2;
E = C/5.;
Calling the above function within a for loop in separate script file. The for loop are as follows:
A = heat (D(j));
I am not getting any results. I understand that I am doing wrong while calling input variable B. At each iteation, the variable B will be replaced by D(j). How can I replace the input variable correctly?