matlab - undefiend function or variable -


i worte that; got error message, " undefined function or variable 'matm'"
'matm' function , no probs in other function. how can that?

function func   global lnods coordi shape nelem dzetta  i=1:3 j=1:4     wormx=zeros(i,j); end end  shape=zeros(3,9);  inode=1:8 ielem=1:nelem ipoin=abs(lnods(ielem,inode)); k=1:3     gtop=coordi(ipoin,k);     gbot=coordi(ipoin,k+4);     gosh=((1.0+0.91)*gtop+(1.0-0.91)*gbot)/2.0;     j=1:3         wormx(k,j)=wormx(k,j)+gosh*shape(j,inode);     end     wormx(k,4)=wormx(k,4)+shape(1,inode)*(gtop-gbot)/2.0;  end end end  matm !---error message  end 

nested functions (i.e. secondary functions within file), visible within file. you'll need move matm function own file.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -