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

    Subroutine SORTQQ help

    i will give you an example with 5 items(numbers) Before sort : array = [ 1,3 4,7 0,23 5,78 1,26] after sort : array = [ 0,23 1,26 1,3 4,7 5,86] i need an additional array that will be : J = [ 3 5 1 2 4] the location of the items(of the sorted array) in the array before the sorting.. The...
  2. DimGio

    Subroutine SORTQQ help

    If i have an array of let's say 1.000.000 elements. With subroutine SORTQQ i can sort the array in 0.2 sec while with other subroutines(not built in) it takes about 15 minutes. The problem is that i need to have an array with the initial location of the elements of the array. Is there any way...
  3. DimGio

    Binomial distribution help

    I would like to ask how can a create a random number generator sampling from the binomial distribution. The easiest way. For example a random number X~B(1,p) Thank you!
  4. DimGio

    create matrix from a file's data

    I am back... If i have 10 files with 1 value in every file how can i create 1 file with all the 10 values?
  5. DimGio

    create matrix from a file's data

    Thank you very much!!
  6. DimGio

    create matrix from a file's data

    Thank you my friend! Can you tell me how to save the results from the different runs in one file?
  7. DimGio

    create matrix from a file's data

    I will have to loop the same number of times as there are columns in my data matrix. If i had one random variable (1 row) and 5 values for that random variable (5 columns) i would loop 5 times and i would find 5 displacements. In every loop i have to pass the values of the respective column to...
  8. DimGio

    create matrix from a file's data

    Thank you my friend! The difficult part is that i must do that so many times as the number of columns of the input data..For example, if i have in the text file the data of a matrix 2x3 it means that i have to run the analysis(put the values of the 2 variables in ) 3 times, and get 3 values...
  9. DimGio

    create matrix from a file's data

    Forgot to say.. The displacement every time is calculated after the end of the analysis.
  10. DimGio

    create matrix from a file's data

    Thank you my friend!I changer the spaces with commas in the txt file so it will not be necessary to do that in the code. The first column is not the name of the variables it's their first values...So i do need the first column. Here is the code i use in opensees : It calculates the...
  11. DimGio

    create matrix from a file's data

    Let me explain you my project.. Let'say that y=var1*var2*var3..*var100 where var1,var2...var100 are random variables.(The take different values every time) I have (let'say) 100 random variables. For each one of them i create 100 samples( i give them 100 different values). variables samples...
  12. DimGio

    create matrix from a file's data

    Greetings to you all! It is the first time i use Tcl and i would like your assistance immediately. It might sounds easy for you ,but for me, who i have no experience at all is quite a trouble. I need to do this : I have a file of inputs. (a matrix 100X100 saved from Matlab..in txt form) I want...

Part and Inventory Search

Back
Top