Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Search results for query: *

  1. chubb87

    do loop - vector as looping variable

    I have found it out myself: you can do it with when you use a parameter of the sum-function: sum(Iwe,dim=3) and then use a vector in Iwe to index it for c
  2. chubb87

    do loop - vector as looping variable

    Hi, I want to convert MATLAB to Fortran code and have problems replacing a for-loop, which uses a vector as looping variable. The MATLAB code looks like this: for m = 1:ind_Dw for c = [1 3 4 7 10 12 14 19 22 24 27] Iw(:,:) = Iw(:,:) + pi*IWE(:,:,c,m)*Dw(m)...

Part and Inventory Search

Back
Top