Timeline for Find the closest value to a given value in a table and its corresponding value in another column
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 3, 2020 at 21:58 | comment | added | John | Bob Thank you very much ! | |
May 3, 2020 at 21:37 | comment | added | Bob Hanlon |
I do not understand your comment. However, in general since TableForm is a wrapper and intended only for display, you do not want it included in a definition of data . That is rather than data = TableForm[datavalues] you would instead use TableForm[data = datavalues] . That way the definition of data does not contain the wrapper.
|
|
May 3, 2020 at 21:18 | vote | accept | John | ||
May 3, 2020 at 21:13 | vote | accept | John | ||
May 3, 2020 at 21:18 | |||||
May 3, 2020 at 21:07 | comment | added | John |
thank you that works!. Last quick question if you dont mind: I realized that they way I have my "data" is in TableForm so literally when I inpur data I will get rows and columns as if it were an excel file, where the headers are in the 5 row the data starts in the 6 row. When I pasted the input from data it looks like what I pasted in here where the output is not in TableForm . Is there any way to transform my data to into how I have it in here?.The reason I ask if because it seems that when it is as in TableForm the code does seem to work. Thank you
|
|
May 3, 2020 at 20:44 | comment | added | Bob Hanlon | I forgot to copy definition. Added. | |
May 3, 2020 at 20:43 | history | edited | Bob Hanlon | CC BY-SA 4.0 |
Added definition for values
|
May 3, 2020 at 20:40 | comment | added | John | Bob, for some reason your code is not working. What does "values" do? it shows as a not defined variable. | |
May 3, 2020 at 19:35 | history | answered | Bob Hanlon | CC BY-SA 4.0 |