Reputation
76,113
Next tag badge:
605/400 score
77/80 answers
Badges
5 189 426
Newest
 Nice Answer
Impact
~918k people reached

2h
comment Can I code a conditional jump in a .nb?
Note that Mathematica doesn't depend on the notebook interface either, it can function without it. Programs can be (and are) written in plain text. Making a program dependent on notebook magic will make it impossible to transfer it to plain text (e.g. a package) and will make it difficult to transfer it between notebooks.
2h
comment Can I code a conditional jump in a .nb?
It can be done, but don't do it. If you want to make it accessible to your students, don't do it. Instead do what Patrick suggests. "Easy to do in Fortran, Python, etc but I'd like to do it in Mathematica - which is more accessible to my students." <- Python and Fortran don't have cells, and Python doesn't have goto. Do you mean a conditional, like if? If so, it works the same in Mathematica, just don't split it into multiple cells. Expressions cannot be split between cells.
5h
revised Creating “detached” plots
edited tags
5h
answered Creating “detached” plots
6h
comment Can I code a conditional jump in a .nb?
I would not try to do this at the notebook level. You can define two functions, then call the appropriate one based on the condition. This is easier and more flexible than trying to evaluate a certain cell based on the condition. Also, it doesn't depend on one particular notebook and its structure.
9h
comment Reading NIfTI-1 files
Well, I was wrong, it does read my files correctly. This looks to be a large package with some very complete bits. Implementing the NifTI importer must have taken quite a bit of time.
9h
answered Reading NIfTI-1 files
9h
comment Reading NIfTI-1 files
@Sektor Sorry, no answer yet. I'm looking at Neurotica but it doesn't handle my files. I might end up doing it from scratch. Either way, I thought it would be a good idea to have a question on this.
10h
asked Reading NIfTI-1 files
13h
comment How can I make a summary of all the commands of Mathematica?
It's a bit weird that WolframLanguageData downloads the whole dataset every time I use it, instead of caching it like some *data functions used to do.
1d
revised GraphDistance gives incorrect result in weighted multigraph
edited tags
1d
comment How can I evaluate untrusted Mathematica code in a sandbox?
You could also run it on Linux in VirtualBox (free). It might be overkill though. Also relevant: stackoverflow.com/questions/4249063/…
1d
comment How can I evaluate untrusted Mathematica code in a sandbox?
I wonder if the security features the CDF player uses can be enabled in any way. There's more than these functions that can be used for harm, though I don't know which ones of those use one of these internally.
1d
comment GraphDistance gives incorrect result in weighted multigraph
I think this is directly related: mathematica.stackexchange.com/questions/92014/… I do think that multigraphs are near-unusable un Mathematica and should not have been introduced in this state. It is in everyone's interest to have these bugs fixed. But for that to happen, you need to talk to Wolfram. I voted to close this post because it is clearly not a question but a complaint and thus unsuitable for this site. I suggest rephrasing it as a question to prevent closing.
1d
revised GraphDistance gives incorrect result in weighted multigraph
edited title
1d
comment GraphDistance gives incorrect result in weighted multigraph
If you want this fixed, please report it to Wolfram. This website is not affiliated with Wolfram. They might not notice that you complained about this here. This website is not for complaints, it's for questions. If they do notice, and they do create a bug report, it might not receive the same weight as if you had reported it yourself.
Aug
21
comment How to write crash-robust code?
You have Mma 10.3?
Aug
21
comment Why does this LibraryLink example of LinkObject based passing not work? Bug or user error?
It seems with Interface Version 3 it's also an int, but MLCheckFunction (deprecated in 4) has a long.
Aug
21
accepted Why does this LibraryLink example of LinkObject based passing not work? Bug or user error?
Aug
21
comment Why does this LibraryLink example of LinkObject based passing not work? Bug or user error?
4 minutes apart :)