Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. hesnengr

    2D array (matrix) in Fortran-Mex file

    thanks gsal, I tried in_mat(nr,*) and it was working.... thank you so much...
  2. hesnengr

    2D array (matrix) in Fortran-Mex file

    thanks loki3000 . thanks gsal, i will try these tricks.
  3. hesnengr

    2D array (matrix) in Fortran-Mex file

    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...
  4. hesnengr

    2D array (matrix) in Fortran-Mex file

    thanks IRstuff . I will look into these links.
  5. hesnengr

    2D array (matrix) in Fortran-Mex file

    Thanks IRstuff. actually it is a project which has to be done in FORTRAN.
  6. hesnengr

    2D array (matrix) in Fortran-Mex file

    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.....
  7. hesnengr

    2D array (matrix) in Fortran-Mex file

    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)...
  8. hesnengr

    4D Matrix

    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...
  9. hesnengr

    4D Matrix

    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...

Part and Inventory Search