I would like to divide every value from a list by a single value from another data file, but repeatedly for 100+ files.
I import my data as below:
DataSet1 = Import[#, {"Data", All, 6}] & /@ MyFiles1;
SingleValue = Import[#, {"Data", 6}] & /@ MyFiles2;
An example of what DataSet1
and SingleValue
would look like is below:
DataSet1 = {{0.00987, 0.12345, 0.06666, 0.04532},{0.02431, 0.07000, 0.13245},{0.01111}}
SingleValue ={{0.123},{0.456},{0.789}}
I would like to divide each list imported in DataSet1
by each single value imported by SingleValue
, is there a way to do this?
Thanks!
Dataset1
by first number inSingle
and set 2 inDataset1
by the second number and so on? If so, you can tryDataSet1/Flatten@SingleValue
but may be I misunderstood you. !Mathematica graphics $\endgroup$DataSet1 #&/@(Flatten@SingleValue^-1)
$\endgroup$