Hi all,
I am writing a FORTRAN code for a MEX (Matlab executable) file. I am facing a problem in defining the dimensions of the matrix. Following is the code which I have created.
C gateway subroutine
subroutine mexfunction(nlhs, plhs, nrhs, prhs)...
Hi all,
I am new to matlab and working to convert a matlab code into FORTRAN code.
I have problem in understanding the following syntax in matlab,
kn=10
i=30
su=0
lam=ones(j,kn+1,i,1)
for j=1:20
su=su+lam(j,kn+1,i,1)
end
In the above code lam is a 4-D matrix with four columns of different...