Reputation
1,480
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 7 26
Impact
~15k people reached

Apr
16
comment Importing replacement rules from files
Is there any reason in particular that you want to work with individual files?
Mar
19
comment How to systematically approach when solving a large system of differential equations?
general piece of advise: don't use names with capital letters (such as L in your code) and stay clear of subscript except for pure visuals
Mar
16
comment General techniques for creating complex animations
Addendum: To get a smooth, even animation the actual interpolation between keyframes is handled globally to archive a constant frame rate. I think Mathematica is a good tool to implement all this because it can handle (1.) a custom datatype keyframe, maybe using UpValues, (2.) mathematical description of interpolation between keyframes (3.) rendering the interpolated keyframe-sequences as vector- or raster-images.
Mar
16
comment General techniques for creating complex animations
As someone who has worked with animation software before: The real point of having keyframes is not really to define every single step as a keyframe micromanaging all the information but to define some start and end keyframe carrying different information with regard to one or more parameters (such as size and rotation) and choosing an interpolation method/path per parameter for generating new in-between keyframes (that may or may not be exposed as editable keyframes themselves).
Mar
16
comment General techniques for creating complex animations
In the usual animation and video tools (e.g. after effects) one often works with so-called keyframes. Parameters such as color, position and transparency of different objects are specified at discrete points in time (that can be moved along a time line). Usually one specifies everything as sequence of keyframes and appropriate interpolation (maybe with fancy fade-in/fade-out effects or polynomial paths etc.). Maybe this way of structuring animations can be applied here as well.
Mar
12
comment What is a printer's point?
I would guess that Mathematica again wants to be clever about the whole thing and does not use a 1:1 ratio for ppi (Pixel per Inch) to dpi because it knows that your screen does not have a 72 dpi screen but a 96 dpi screen. Most people would probably assume that WindowSize -> {2560, 200} gave them a full screen windows on a 2560 px screen regardless of the pixel density.
Mar
4
comment Direct Pressure Data Acquisition with Mathematica and Arduino
I just tested performance briefly: DeviceExecute can be called with approx. 30Hz (which is a bit disappointing) while both DeviceWrite and DeviceReadBuffer can be called with approx. 700Hz at a baud rate of 115200 (higher rates such as 256000 didn't work) when listening on the serial port.
Feb
29
comment Using \n (new line) as delimiter in StringSplit
@Kuba, Thanks! In the light of the clear documentation on Whitespace this turned out to be a stupid question ...once again an example of dangerous "intuition" and the suggestive nature of the naming scheme of build-in symbols
Feb
25
comment Export Plot to PDF results very messy
I personally stopped trying to get Graphics exported as .pdf altogether and usually use .eps instead and imbed/convert to .pdf in my external software (Adobe Illustrator, Latex ...)
Feb
15
comment Serial - DeviceOpen - Baudrate Error
This discussion on reddit might be relevant
Feb
14
comment Serial - DeviceOpen - Baudrate Error
What happens when you use 256000 as baud rate?
Feb
13
comment How to convert this .txt data into a list of points
This is because for instance {"6.1101,17.592"} isn't a valid expression. You could either manipulate the strings to split them into something like {"6.1101","17.592"} and then use ToExpression. Or you could use SemanticImportString. This allows you to convert to whatever kind of expression you want (such as real numbers) and split strings at , at the same time
Feb
9
comment how to map a function on a variable list
@Ziofil you may want to edit your question and clarify what your goal is. The code from your question leads one to believe you want to count the number of entries in a list that are not equal to 1
Feb
9
comment how to map a function on a variable list
I would advise (not only in Mathematica) to avoid mutating state at all cost. As others have suggested better use Select and leave the original list intact or use Sow and Reap to build a list of results if you really have to do things iteratively.
Feb
9
comment Direct Pressure Data Acquisition with Mathematica and Arduino
If it is not too much trouble I would greatly appreciate it. I plan to play around with Arduino and some sensors in the near future too so if you don't find the time to do some testing I will do it eventually and post what I found as edit to your answer if you like.
Feb
7
comment Combinations of multiple matching patterns
@Berg see my updated answer, does this address your questions about the general nature of the approach?
Feb
4
comment Combinations of multiple matching patterns
+1 for the "contrived and questionable" method
Feb
4
comment Combinations of multiple matching patterns
This still leads to a massive amount of possible disjunctions that have to be manually addressed (and in the correct order) for the switch statement to work. Imagine not three fizzbuzz rules but a hundred
Feb
1
comment Direct Pressure Data Acquisition with Mathematica and Arduino
Have you tested performance i.e. how many samples you could capture per second?
Jan
31
comment Is there a way to find the values of x for a graph in a given area?
...is that mac os 7?