Fortran to matlab 'undefined function error' -


i want covert fortran matlab.

-fortran code

   20 i=1,3    20 j=1,4 20 wormx(i,j)=0.0     24 inode=1,8    ipoin=iabs(lnods(ielem,inode0)    24 k=1,3    gtop=coord(ipoin,k)    gbot=coord(ipoin,k+4)    gosh=((1.0+zeta)*gtop+(1.0-zeta)*gbot)/2.0    22 j=1:3 22 wormx(k,j)=wormx(k,j)+gosh*shape(j,inode) 24 wormx(k,4)=wormx(k,4)=wormx(k,4)+shape(1,inode)*gtop-bbot)/2.0     call matm(2,5,0,1) 

. . . -matlab code

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(2, 5, 0, 1) 

. .

i got error message in matlab code,

"undefined function or method 'matm' input arguments of type 'double'." 

what's problem in code?

your fortran code calls procedure matm. if fortran code not error, presumably procedure defined somewhere.

have translated procedure matm matlab yet? if not, issue - when matlab gets point matm(2, 5, 0, 1) fails, function matm not defined.

if have translated matm matlab, issue matlab cannot find function matm. perhaps need add location of matm matlab path.


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 -