Info

This question is closed. Reopen it to edit or answer.

not enough input arguments error for function

1 view (last 30 days)
Redikultseva Iuliia
Redikultseva Iuliia on 23 Sep 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
Good day everyone.
I'm new here, maybe someone can help me with the issue. Excually i try to use PDEModel Obletcs for my thesis and I try to use rhe example from matlab scripts http://fr.mathworks.com/help/pde/ug/scalar-functional-form-and-calling-syntax.html
There you have the function c represented as c = 1 + x2 + y2
And to write function in this xemple they suggest this code but when I copy it in my matlab i always have error of not enough inpout parametres
There is a code for this exemple
function c = cfunc(p,t,u,time)
% Triangle point indices
it1 = t(1,:);
it2 = t(2,:);
it3 = t(3,:);
% Find centroids of triangles
xpts = (p(1,it1)+p(1,it2)+p(1,it3))/3;
ypts = (p(2,it1)+p(2,it2)+p(2,it3))/3;
c = 1 + xpts.^2 + ypts.^2;
This function need to have p.t.u.time as variables for being compatible to a create pde model.
I hope for your answers. Thank you in advance
  4 Comments
Redikultseva Iuliia
Redikultseva Iuliia on 23 Sep 2015
Sorry to all i've found the answer. Thank you Stephen Cobeldick)) Have a good day

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!