Guest User

Untitled

a guest
Dec 16th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Import["C:\Users\njs\Documents\Computing\Software\Mathematica\
  2.  
  3. myData = Flatten[
  4. MapIndexed[{Sequence @@ #2, #1} &,
  5. Import["/Users/nick/Documents/Mathematica/sampleData3.xlsx",
  6. {"Data", 1, {2, 3, 4, 5}, {2, 3, 4, 5}}
  7. ], (* <-- close Import. NOTE: {"Data", 1, {2;;5},{2;;5} did not work *)
  8. {2}], (* <-- Close MapIndexed *)
  9. 1] (* <-- Close Flatten *)
  10.  
  11. data = Flatten[Import["sampleData3.xlsx", "Data"], 1];
  12.  
  13. data//TableForm
  14.  
  15. data[[1]]
  16. {0., 1., 2., 3., 4., "", "", "", "", ""}
  17.  
  18. data[[All, 2]]
  19. {1., 11., 31.}
Add Comment
Please, Sign In to add comment