Amatya
Reputation
2,873
Next privilege 3,000 Rep.
 Oct 11 comment Function to select a row whose kth element is closest to a given number @Rojo in this example, the first element but in my actual problem some kth element. Oct 11 revised Function to select a row whose kth element is closest to a given number added 671 characters in body Oct 11 comment Function to select a row whose kth element is closest to a given number oh.. the stuff after the _ has meaning... I thought that was just so the programmer can keep track of stuff. Let me try your function.. thanks a lot Mr. Wizard! Oct 10 comment Function to select a row whose kth element is closest to a given number Also, can you please make your code into a function. I would like to learn how to do that. Why does nff[num_numba, l_list] := Nearest[Map[Rule[#[[1]], #] &, l]][num][[1]] and nuff[b, list] produce garbage? Oct 10 comment Function to select a row whose kth element is closest to a given number Oh man! good MMA code is so slick! Thanks a lot Daniel! What was I doing wrong in my disT function though? Oct 10 comment Function to select a row whose kth element is closest to a given number @DanielLichtblau I only want to use the Distance function on columns which have real entries. Oct 10 asked Function to select a row whose kth element is closest to a given number Oct 10 comment Showing a forest with root of the trees on the top @Mohsen Thank you for the accept! This is my first answer.. I feel so excited and useful. lol. Oct 10 comment Showing a forest with root of the trees on the top @Mohsen oh cool. I didn't know one could do that! Thx! Oct 10 comment Showing a forest with root of the trees on the top @Mohsen I edited the answer to address your concerns. Oct 10 revised Showing a forest with root of the trees on the top added 737 characters in body Oct 10 awarded Teacher Oct 10 answered Showing a forest with root of the trees on the top Oct 9 asked Export to Excel gives error for large lists Oct 9 comment Learning Finance with Mathematica @GeorgeWolfe The Why is critical to this whole enterprise. Someone with a strong Statistics, Econometrics and programming background will not go very far if they don't understand the Finance and Economics behind the models. Your road-map is absolutely essential to keep OP's project from being DOA. Presumably some of those MMA for Fin-engineering books will provide some of this perspective but I am not optimistic about the quality. Oct 9 asked Exporting data to a new excel sheet of a pre-existing excel file Oct 7 asked saving Manipulate data inside a notebook Oct 6 accepted xkcd-style graphs Oct 6 revised xkcd-style graphs added 180 characters in body Oct 5 accepted Manipulate indexed Interpolating Functions