Questions tagged [format]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
3 answers
225 views

How do I show a list of variables and their associated values as a list or table?

I would like to do calculations using various variables as inputs along with functions or formulas and once all variables are calculated I need to output some or all of them in a table (or list). Here ...
user avatar
0 votes
0 answers
33 views

Are there different formats for Mathematica Notebooks and how are MIME types defined in them? [closed]

I use Mathematica 12.3 on Xubuntu 20.4. The computer runs with German localization. I wondered, why one of my notebooks is displayed with the icon usually used for LibreOfficeWriter documents. In the ...
user avatar
0 votes
0 answers
32 views

Subsuperscript in a different way

I am using the following format for subsuperscript: ...
user avatar
  • 1,163
4 votes
1 answer
206 views

Copy clipboard content to mathematica notebook - line break symbol changes

There are 3 kinds of line breaks \r \n \r\n For windows, \r\n is standard. Suppose that there is a file called document.txt, using \r or \r\n as line breaks. Suppose that I open document.txt with a ...
user avatar
  • 2,451
1 vote
2 answers
96 views

How to import a (large) .CSV file maintaining its shape (defined by curly brackets)

I'm working on large tables generated with Mathematica, evaluated on different computers. I plan on join the tables on my computer and proceed with the interpolation of the data there contained. The ...
user avatar
  • 113
0 votes
0 answers
74 views

Cannot open Utilities 'FilterOptions'

I'm trying to run a code like this in Mathematica: ...
user avatar
  • 3
6 votes
2 answers
140 views

Mapping between lists and Mapping Formats

I've been writing a conversion 'script' between two robot description formats and thought I would try out Mathematica as I thought it sounded pretty awesome. Although by this point I should have done ...
user avatar
  • 63
1 vote
0 answers
81 views

How to recover plaintext from .MX files?

I need a function to deserialize the contents of an MX source file for reading. We can’t simply use Get because I don’t want to load or run the code, but rather to ...
user avatar
  • 3,720
2 votes
2 answers
122 views

Equivalent "format painter" for Mathematica

Does anyone know any equivalent tool like "Format Painter" (Picture) of the MS Word processor but for Mathematica ? "Format Painter" is used when you want to copy formatting from one item to another. ...
user avatar
  • 33
0 votes
1 answer
69 views

Importing a 3 dimensional list

I have a code that is generating some numerical data in the form of a list of trajectories. Each trajectory itself is a list of 2D coordinates. Each coord. is a list of 2 numbers.(see example data ...
user avatar
  • 902
4 votes
3 answers
217 views

Converting between XML and JSON?

I can't seem to find a way to convert between an XML string and RawJSON: ...
user avatar
  • 30.3k
3 votes
0 answers
641 views

Mathematica 12 blurry with High DPI 4k screen [closed]

Same as here. Everything very blurry. Maybe there is any new solution for Mathematica 12 under Windows 10?
user avatar
  • 973
4 votes
2 answers
168 views

Change TeXForm of ArcTan

When using ArcTan, the corresponding TeXForm is tan^{-1} and not \arctan which I would ...
user avatar
  • 129
11 votes
0 answers
128 views

What's the difference between these formats?

Unfortunately, the documentation does not give a substantive explanation of the differences between these formats: WDF vs WXF WLNET vs WMLF M vs WL - was answered here: What is the difference between ...
user avatar
  • 30.3k
0 votes
1 answer
50 views

Converting the result of Normal@ to normal table form [closed]

Consider a command which extracts the contour of RegionPlot: ...
user avatar
  • 3,542
3 votes
1 answer
124 views

Defining output format tutorial : i don't understand what the function Format is really usefull for

I was reading this documentation page : http://reference.wolfram.com/language/tutorial/DefiningOutputFormats.html I really don't understand the point of the Format function. Indeed, if I take the ...
user avatar
  • 1,973
4 votes
1 answer
1k views

How to read this dataset with .dat and .r64 files?

I stumbled upon the European Data Incubator project, and wanted to play around with some of their data. I'm trying to open this dataset, which contains a bunch of ...
user avatar
3 votes
0 answers
451 views

Mathematica code got converted to postscript format. Is there a way to restore it?

I was trying to save my notebook in .pdf format, but instead of that, somehow this happened. How do I restore my notebook? Please Help.
user avatar
0 votes
1 answer
80 views

How to export the specify format

I have a such table table = Table[{i, 2*i}, {i, 10}]; Now I want to export it as a .txt file. If I use ...
user avatar
  • 23.1k
3 votes
1 answer
164 views

Converting subscript in fortranform

i have a matrix like this: F := Table[Subscript[f, i, j], {i, 3}, {j, 3}] c=F.F my question is that how to convert the components of c to this form Subscript[f, ...
user avatar
  • 751
0 votes
1 answer
100 views

Conditionally color background of PopupMenu

I am designing a student workbook and I would like to put a PopupMenu alongside a question that will display all choices with standard gray or white background. However, after they make selection I ...
user avatar
  • 167
1 vote
1 answer
50 views

Create a set of buttons to change background color of next cell

I came across the following snippet (sorry can't find original location to give credit). I would like pressing any of the generated buttons to automatically go to the next cell and color it the ...
user avatar
  • 167
6 votes
1 answer
837 views

How to import an HEIC image?

As of iOS 11, iPhones save images with a new compression format HEIC. Now all my photos are all in this format and I'd like to import them to Mathematica but this is not a supported image filetype. ...
user avatar
  • 30.3k
5 votes
1 answer
108 views

why changing the order of `Format` causes error?

I am trying the solution given in is-it-possible-to-change-customize-some-conversions-done-by-texform which works very well except changing the order of the Format ...
user avatar
  • 108k
1 vote
1 answer
418 views

Correct format to import vector from file

Although this question was kind of already asked, it was closed because not enough information was given. Here is my attempt. I am trying to find out the correct format to import a vector data set (...
user avatar
  • 533
12 votes
3 answers
901 views

Is it safe to Unprotect everything? What are the implications?

What is the reason for built-in symbols to be Protected? What happens if I Unprotect built-ins and add my own ...
user avatar
  • 530
14 votes
3 answers
297 views

How to make the result of InputForm balance the bracket

I always use InputForm to check the result object,such as Dataset or Graphics or other ...
user avatar
  • 23.1k
6 votes
0 answers
186 views

Export of GraphicsRow to PDF is ugly

I have a problem with exporting GraphicsRow[{Plot, Plot, Plot,...}] object to pdf. The line is like ...
user avatar
  • 488
0 votes
2 answers
256 views

How to expand an expression into $\sum _{i=0}^{\infty } a_i e^{b_i}$?

For given an expression like $-\frac{e^{-\frac{\text{d1} t}{\text{c1}}} \left(-\text{a1} \text{a2} \text{d1}^2+\text{a1} \text{b2} \text{c1} \text{d1}+\text{a2} \text{b1} \text{c1} \text{d1}-\text{b1} ...
user avatar
1 vote
0 answers
153 views

How to avoid quotes around strings in variables with a custom format in the display inside Datasets in V11? [duplicate]

I'm wondering how to deal with some unwanted behaviour of the new display format of Dataset in Mathematica 11 (I'm using version 11.0.1): I'm using a custom "type",...
user avatar
4 votes
1 answer
88 views

How to avoid RecursionLimit error when using Interpretation formatting?

I am trying to define a function that has similar behavior as Indexed. Here is the code ...
user avatar
  • 2,077
5 votes
4 answers
801 views

Automatically use blue color for comments in input cell

Currently, when I type comments into input cell the comment has the same color or style as the function color/style as shown in figure number 1. I would like to automatically use blue color for my ...
user avatar
  • 2,147
4 votes
2 answers
268 views

ExcelLink: How to change cell properties like font family, size and borders?

I just purchased the Mathematica Link for Excel. I can't figure out how to change the cell properties in excel using ExcelLink package? Can someone please help.
user avatar
  • 8,075
1 vote
0 answers
226 views

NASA CDF Epoch format

This is a rather obscure question, but perhaps someone has the answer. I am trying to read/interpret a number stored in NASA's CDF Epoch format. That's the number of milliseconds past Jan 1, year zero....
user avatar
1 vote
0 answers
84 views

$μ_t$ becomes SubscriptBox[\[Mu], t]

I was using variables like $μ_t$ in my local Mathematica notebook. But when I opened that notebook in Mathematica Online everything got converted to something like SubscriptBox[[Mu], t]. How can ...
user avatar
  • 275
10 votes
1 answer
498 views

TeXForm: Adding color

Background & Question So if you're reading this you probably think Mathematica is pretty great - at least I do. The function Table by itself take someone ...
user avatar
  • 5,182
3 votes
1 answer
632 views

Need help using apply @@ and @@@ functions with Grad [closed]

I need help using Apply (@@). In the following code ...
user avatar
30 votes
5 answers
8k views

Mathematica 11 with High DPI 4k screen

My laptop has a 17 inch 4k screen, running Windows 10 and Ubuntu 1604. Both systems are set to 2x scaling. But Mathematica 11 (released 2016-08-08) is still blurry like version 10. Is there a simple ...
user avatar
  • 561
0 votes
1 answer
516 views

Importing .AVI to mathematica and frame extraction

I'm trying to import frames from a video with the extension .avi, using this piece of Mathematica code: Import["video.AVI", {"Frames", {5, 6}}] But I get this ...
user avatar
  • 81
2 votes
3 answers
218 views

How to display elements of a product in a certain order [duplicate]

I have several product states, represented by a string of variables - for example, "ABC". I'd like to multiply this state by a constant, call it J, to which I don't want to pre-assign a value. Using J ...
user avatar
5 votes
0 answers
84 views

AppearanceRules on multipage Web Form

I'm attempting to make a web survey using FormFunction. To list the questions I am using AppearanceRules to give each page an ...
user avatar
2 votes
0 answers
72 views

How to get divider line in function/option table in Wolfram Workbench

In the tutorial pages in the documentation to my package, I have a table that contains functions and their definitions. In the sample tutorial page, I see a divider line separating the header from ...
user avatar
3 votes
2 answers
1k views

Output arrays in format that can be compared with Python numpy

Is there a way to convert an array in Mathematica such that its output format resembles that of Python's numpy arrays? I want to go from: ...
user avatar
1 vote
0 answers
219 views

How to import and export msgpack?

MessagePack is an efficient binary serialization format, I find it much better than JSON. There is currently (as of v10.3) no support for this in Mathematica. Does anyone know of third party ...
user avatar
  • 30.3k
1 vote
0 answers
208 views

Export vector in .txt file with newline separator [closed]

I need to export a 1-D list (vector) in .txt format with one line corresponding to one value : v = {v1, v2, v3, ..., vn}; And the result should be, in ...
user avatar
  • 11
2 votes
2 answers
96 views

How to change the OutputFormat of the Power operator in FortranForm

I'm trying to have Mathematica automatically give me an equation which I can use in a different programming language. FortranForm produces output which is very similar to what the other language is ...
user avatar
  • 111
2 votes
1 answer
276 views

Mathematica file transforms to some strange format

I am facing a very annoying problem with mathematica file. Sometimes it is automatically saved in a "pdf like" bizarre format. Each input and output line of the original (.nb) file starts with In[#] ...
user avatar
1 vote
2 answers
1k views

ContourPlot: format numbers in contour labels and legend

Can you suggest me a simple way to specify custom display format (for example ScientificForm) for such large values in contour labels and legend please? Thank you! ...
user avatar
3 votes
1 answer
67 views

Indent SymbolicC [duplicate]

What is they shortest way to automatically indent SymbolicC at the Brackets { and }? For example: ...
user avatar
  • 7,399
6 votes
1 answer
141 views

To TagSet or not to TagSet when using MakeBoxes

What is the difference between the following two: ...
user avatar