Chossing random data from xls files
显示 更早的评论
I have hundreds of excels files in different folders with data on hundreds of records,I want to record the data to a single (excel) file that choose randomly files from the folder and the rows (randomly too...) Please guide me what is the procedure that I adopt to cater this thing. Thanks
3 个评论
Geoff Hayes
2014-8-12
Muahmmad - do you have a list (cell array) of all files (with paths to each file)? Do you need to select at least one row from each file? If data has been selected from a certain file, can we re-select that data? How many rows (in total) do you want to select?
Since your randomness involves choosing files from a list, or rows from a file, the generated random number will always be an integer. See randi for details on generating pseudorandom integers.
Muhammad Usman
2014-8-12
Salaheddin Hosseinzadeh
2014-8-12
It's a pure programming problem.
Anyone with a little creativity, knowledge of programming, and of course some hours to think and trial and error should be able to tackle this really!
I don't see a point to ask this!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!