Tag Info

New answers tagged

4

My approach to this task would be to create new Input Cells within the notebook, that have the same structure as newly typed in symbol definition. createNewSymbol[] := Module[{importFileName = SystemDialogInput["FileOpen", ".txt"]}, With[{importedData = If[StringQ@importFileName, Import[importFileName, "Table"]], symName = ...


6

it is not etirely clear for what you need that, but I think the best way to store data within a Notebook so that it is available in the next session is the TaggingRules option. This is how you could store data for a there: CurrentValue[EvaluationNotebook[],{TaggingRules,"dataset-name"}] = data; And this is how you can read it: data = ...


2

There are a few formatting issues to take care of before you can use the data imported from Excel. Let's start with a simple adjacency matrix: WeightedAdjacencyGraph[ {{∞, 1, ∞}, {∞, ∞, 1}, {1, 1, ∞}} ] which generates the following graph: Let's export that adjacency matrix to an Excel file: Export["adjmat.xlsx", {{∞, 1, ∞}, {∞, ∞, 1}, {1, 1, ∞}}] ...



Top 50 recent answers are included