Tag Info

New answers tagged

2

The reason you are getting the error message you quote is because of an ill-formed domain specification. You specify a 1-D domain where a 2-D domain is required. So let's correct that. f = ListInterpolation[ Table[Evaluate[{Sin[8 t], D[Sin[8 t], t]} /. t -> x], {x, 0, 3, 0.05}], {{-1, 1}, {-7, 8}}, Method -> "Spline"]; This still gives a ...


1

Here's a 2D example to get you started. First, make up some data that has the right format: list2D = Flatten[Table[{{i, j}, RandomReal[]}, {i, 1, 5}, {j, 1, 5}], 1] You might want to make sure your data has the right number of parenthesis and nesting of lists, like list2D. Now make an interpolating function using the spline method. Note that this does not ...


4

The angle signs mean that you're looking at a shorthanded expression. Take a look at FullForm[s] to see the real thing. The curly braces are there because NDSolve is going to give you consistently formatted results whether you look for only one function with only one solution or your solution involves more than one function, and more than one possible ...


1

When manipulating B-splines in this manner, it is often convenient to fall back on the definitions. Luckily, since Mathematica supplies the function BSplineBasis[], using the definitions are easy: pts = {{0, 0}, {1, 1}, {2, -1}, {3, 0}, {4, -2}, {5, 1}}; n = 3; (* B-spline degree *) m = Length[pts]; (* clamped uniform knots for B-spline *) knots = ...


2

For Example: (Let's define some data*) t20 = Range@10; J20 = RandomReal[{0, 1}, 10]; tabt20 = Transpose[{t20, J20}]; (*better than your Table[] !*) Intt20 = Interpolation[tabt20]; (*Interpolate*) Intt20[3.3] (*calc it at some point *) Plot[Intt20[x], {x, 1, 10}] (* plot it *)


4

There are many ways to de-noise data. A simple one is to use one of the built-in filters. For example here I've applied the MeanFilter separately to the x and y dimensions of the data points that make up the arrows (i.e., your noisydata). This is sensible because your points lie on a regular grid. args = noisydata[[All, 1]]; datVals1 = ...



Top 50 recent answers are included