New answers tagged

1

Well... (importing your .STL object): obj = Import["Link.STL"] ...if nothing else a very poor man's solution for simple visual in an interactive interface is just random sampling of points (i know it is far from spectacular :-) but is very light): pts=RandomPoint[obj,1000]; obj//ByteCount Graphics3D[Point[pts]]//ByteCount 1808792 24792 Also I ...


0

Update - Add function to process a file and save computations in an Association Any other required computations can be added to the function and the association. processFile[file_] := Module[{data, selectedData, dataByDate, dataValues, datePlot, datePlotMax, datePlotMin, datePlotMean, combinedDatePlot}, data = Import[file, "Table", "...


0

Let's say your semantically imported dataset have columns for "Latitude" and "Longitude" with such names and now you replace them with a combined column for Mathematica's representation of geocoordinates as a GeoPosition by: dataset=SemanticImport[...] dataset=Query[All,<| KeyDrop[#,{"Latitude","Longitude"}], "GeoCoordinate"->GeoPosition[{#...


0

In order to test the model, I should implement within the matchesFor function the importation of the already played matches dataset ordered by rounds for all leagues (here reported Italian league code from the webpage that already does this filter): d = Import["https://www.soccerstats.com/results.asp?league=italy&pmtype=\bygameweek","Data"]; t1=Table[{d[...


0

Thank you Rohit! Actually I would need to have all the main european leagues data within three big vectors only, that is Chome, Caway and matches. Basically, I would like to have Chome={ChomeENG,ChomeITA,ChomeGER} by manipulating website pages root with a function which creates it. And so on for Caway and matches, instead of doing it by repeating the same ...


0

Update To get a list containing the Home values for all of the countries as separate sub lists: allHome = countryMatches // Map[KeyTake[#, "Home"] &] // Catenate Similarly for any other key in the association. I modified the code so it is easier (at least for me) to understand and wrapped it in a function that returns an Association of associations ...


1

Next, I would like to loop the whole process so that I don't have to copy and paste my code 8 times for each individual file. Since Import[..., "Data"] worked for you, why not use that? Something like SetDirectory[NotebookDirectory[]] And now define, in separate cell, a module to process each file processFile[fileName_]:=Module[{data}, data=...


5

Alternative answer: Use the SVG importer from my Prototypes paclet: https://github.com/arnoudbuzing/prototypes/releases/tag/0.5.6 To install the paclet, run this command: PacletInstall["https://github.com/arnoudbuzing/prototypes/releases/download/v0.5.6/Prototypes-0.5.6.paclet"] Note that this paclet has many many functions, but you may be able to ...


Top 50 recent answers are included