thanks loki3000 for your interest in this issue.
The problem I am facing here is, the input is in the form of matrix, for example [1 2 3; 4 5 6] is a 2*3 matrix. This will be read by matlab, but when it is transferred to to FORTRAN Computational routine, FORTRAN is only allowing me to define...
thanks for your reply. you are right that it can be done this way but it is bit complicated. it is a very small part of code and i have a lot of matrices to do different operations. in order to avoid any mistake i am looking for some thing simple.....
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)...
Thanks for the interest and sorry i did not mention j=20 . but to give you an idea about the lam structure following is an example.
if lam=ones(5,3,4,2)
then it has four columns with different lengths e.g. 1st column has 5 rows, 2nd col has 3, 3rd has 4 and 4th has 2 only.
lam =
1...
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...