20,406 reputation
12769
bio website
location
age
visits member for 2 years, 7 months
seen 8 hours ago

Jul
19
comment Interactively Manipulate SparseArrays or Lists
{params[c], 0, 50} here param[c] is not a control variable. This sould be a symbol, like x, c, y, etc.. not a function.
Jul
19
comment Excluding region with `RegionDifference`
yes. I just stopped local kernel and started again. still works here.
Jul
19
comment Excluding region with `RegionDifference`
windows 7, V 10.0 : !Mathematica graphics
Jul
18
comment Why does ImportString[“1c”, “Table”] eat the letter c?
Also notice what it says in help if the format specification is not given: "attempts to determine the format of the string from its contents." the keyword is attempt. I do not think this is a good way to make functions. This is all fuzzy type programming. What does "Attempt" actually mean? How do I grade this attempt? A grade? B grade? 85% attempt? A function should be clear. It should tell exactly what is the input and what is the output.
Jul
18
comment Why does ImportString[“1c”, “Table”] eat the letter c?
This is because it is SMILES :). Try this StringFormat["123c"] !Mathematica graphics
Jul
17
comment Possible bug: SparseArray Part assignment loses default value?
on version 9, I get same thing. I think it has to do with the way you build it in first place. Compare to data = Table[1, {20}];s = SparseArray[data]; s[[All]] = 1; s // Normal and now it is ok.
Jul
16
comment Mathematica 10 Notebook Fonts Look Bad
It is because you used UpperCaseFirstLetter. These are meant to be used by Mathematica only. Try it with lowerCaseFirstLetter as in foo[] instead of Foo[], it will look much better !
Jul
16
comment ListPlot[] code for CSV file not working
I do not get it. Lets say i=2, ok? So the first column is the x-values, fine. Now the y-values you are saying come from the rows of the (i-1) column? but this is 1 in this case? But that is supposed to be the x-values for all the other columns. Are you simply trying to plot columns 2-9 against the first column?
Jul
16
comment Add contour lines to Graphics3D
what is toPoint ? not defined. You are not even using pts at all in the example above.
Jul
16
comment Replace distinct values of list with values of another list
fyi, instead of posSelect = Position[data, a_ /; a == 100, {3}, Heads -> False]; you just write posSelect = Position[data, 100, {3}, Heads -> False];
Jul
16
comment how to write string to file without Quotation mark
@Algohi First, it is WriteString[file, "\n"] where file is the file handle returned from the OpenAppend call. Second, yes, you can do "\n" on its own, it will go to the end of the last written string and make new line. WriteString does not add "\n" on its own. The user has control on that. You can write WriteString[file,"A\nB\n"] if you want.
Jul
16
comment Overloading ClearAll[] to take no arguments
corrected what I meant above. I typed it wrong.
Jul
16
comment Overloading ClearAll[] to take no arguments
OP might have issued the SyntaxInformation.. command after doing the Protect like you did?
Jul
16
comment Kernel crash after idle in version 10.0
amazing bug. Kernel crashes because it can't connect to the internet !
Jul
16
comment Is there a bug in AssociatePairs?
is GeneralUtilities supposed to be an official thing? or some kind of still-in-work package? If it is official, where to find official documentation about it? When I type reference.wolfram.com/search/?q=GeneralUtilities I do not see it?
Jul
16
comment Overloading ClearAll[] to take no arguments
But if you defined ClearAll[] in global context, would not then calling ClearAll[] first time clears your own ClearAll[] that you just defined? Since ClearAll from the system is in the system context Context[ClearAll]. I agree with you, it will be nice to have a system command to clear all, without having to specify the context. I always mixes up the * and the ` order
Jul
15
comment How to fix the “Module” function, for implicit funcitons?
I understand. If you are from Matlab, then M arrays and matrices are not much different from Matlab's. In M, just use [[ ]] in place of Matlab's (). and in place of : in matlab, there is ;; and in place of end in Matlab, there is -1 (I actually define end=-1 in my code since I also use Matlab, so this way it is less confusing to me)
Jul
15
comment How to fix the “Module” function, for implicit funcitons?
Why do you write Part[frequencyRow, 1] like this? Hard to read. Simply frequencyRow[[1]] Just like in Matlab frequencyRow(1)
Jul
14
comment Multiple down-values with exactly the same lefthand side
oh, I did not even see the Condition you had there, since it was at the bottom of the body, I never saw condition put there!
Jul
14
comment Multiple down-values with exactly the same lefthand side
The new version of my function will never be executed because the older definition will always match first it should really have kept only the last one? !Mathematica graphics yes, this is very strange.