Tag Info

New answers tagged

3

Block[{ f = Transpose[{##}] &, g = Function[{x, m}, MapAt[m # &, x, {;; , 2}]] }, Join @@ dataSample ] or even "nicer": Block[{ f = ## &, g = {#, Times @@@ Thread[{##2}, List, 1]}\[Transpose] & }, Join @@ dataSample ] {{10009,{0.225841,1.1292,58.041}}, {10007,{0.239874,1.19937,61.6477}}, <<37>>, ...


1

ListPointPlot3D[data, PlotStyle -> Directive[PointSize[0.02], Thickness[0.01]]] /. Point[x_] -> Through[{Point, Line}[x]]


1

d = data /. {x_Real, y_Real, z_Real} -> {{x, y}, z}; dat = Flatten[d, 1]; int = Interpolation[dat]; Plot3D[int[x, y], {x, 0, 1.6}, {y, 0.1, 10}, Mesh -> {data[[All, 1]][[All, 1]], data[[1, All]][[All, 2]]}, PlotStyle -> Opacity[0.5], MeshStyle -> {Red, Blue}] The idea is to use Mesh option for drowing lines on surface obtained from ...


1

Edit (This task will not let me go ...) model3 = ((a + b*x + c*x^2)/(1 - a + b*x + c*x^2)); myFit = Normal[NonlinearModelFit[data, model3, {a, b, c}, x]] $\frac{3.79483 x^2-1.70736 x+0.664564}{3.79483 x^2-1.70736 x+0.335436}$ Just for fun: model2 = a*x^5 - b*x^4 - c*x^3 + d*x^2 - e*x + f; myFit = Normal[NonlinearModelFit[data, model2, {a, b, c, d, ...


4

Here is one example of how to create a neo4j connection using JDBC driver from this git. The steeps are: 1- Put the JAR file (neo4j-jdbc-2.0.1-SNAPSHOT-jar-with-dependencies.jar) together with other jar drivers in: FileNameJoin@{ $InstallationDirectory, "Contents/SystemFiles/Links/DatabaseLink/Java"} 2- Restart you Mathematica 3- Now, using Movie Graph ...


1

The two-dimensional histogram figure works for me (v. 10.0.0) for 300000 data points: mydata = RandomVariate[UniformDistribution[], {300000, 2}]; DensityHistogram[mydata] I did get your error message when I accidentally had extra { } around my data set. Check that for your data. You can do that by Dimensions[mydata].


0

NetCDF does not support primitive String type variables as indicated here due to the variable length of String. As such, the way dealing with Strings by NetCDF is to store them as Char-type variables and then convert them back as strings wherever needed. However, Mathematica doesn't have a primitive Char type and thus cannot export Datasets with Char-type ...



Top 50 recent answers are included