Questions tagged [column]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
114 views

Identify maximum difference in Matrix

i am trying to find the Maximum difference between two matrices and identify where this maximum occurs. I illustrate what I mean using an example. Given ...
2
votes
2answers
56 views

Table counting divisors

I have a simple table that I can't quite make work. Columns are as follows A function returning 1 if x divides ...
2
votes
2answers
60 views

Normalize a vector: error [duplicate]

I have this simple example in which I am trying to write a column vector (ket vector) and then I want to normalize it. It seems that ther is something wrong, leading to an error message "The first ...
3
votes
3answers
145 views

using DeleteCases to delete vectors with particular index as 0

Assume I have a set of vectors set = {{0,1,1,0,1}, {1,0,1,1,1}, {1,1,1,1,0},{1,0,0,1,0}}. I want to delete the vectors which have the last entry as 0. In the ...
1
vote
0answers
69 views

How can I vary the height of items in a GraphicsColumn?

I would like to create graphics that look like this: g = Grid[{{"Circle"}, {Graphics[Circle[]]}, {x^2 + y^2 == r^2}}, Frame -> All] But when I use this code, ...
2
votes
2answers
62 views

How to write a matrix of $n\times 2$ where the first column is made of only 1's?

How to write a matrix of $n\times 2$ where the first column is made of only 1's? Suppose I have a vector x={.24,...,10}. How can I get this $\left( \begin{matrix} 1 & .24 \\ 1 & ...
2
votes
1answer
66 views

How do I copy a mathematica column to paste in excel?

I have a list of elements that I transform into a column: a = {1, 2, 3, 4, 5} Column[a] 1 2 3 4 5 How do I print this column so it can be copy-pasted in ...
0
votes
1answer
40 views

Interactive plot labels

This question was inspired by this answer. Consider we have set of data: data = RandomReal[1, {10, 5}] Command which allows to plot arbitrary the columns is <...
2
votes
2answers
89 views

ListPlot using given columns of the data with many columns

Consider we have a table table1 with $n$ columns. I want to ListPlot two given columns from the table. For example ...
14
votes
2answers
330 views

Column makes fonts smaller

When you use Column (or Grid) a previously styled element with explicit font-size setting appears much smaller. Here is an ...
1
vote
1answer
62 views

How to discard values from a matrix (column) using specific conditions

EXPLANATION OF THE PROBLEM: I have an oscillating function, defined as $f(x)$; that function is also “periodic”, with period T and $f(x)=f(x+T)$. The function is ...
1
vote
0answers
59 views

How to plot data from table dynamically, without knowing how many columns are there?

I'm trying to read coordinates at certain times of Planets and Plot the orbit into a graph. For this example I'm doing this for eight planets, some coordinates from a table of some timesteps of the ...
1
vote
1answer
76 views

separating a `ReadList` of a CSV file into columns using `Case`

I have a really large file and would like to determine the pattern required for separating the columns by the different headers. I attempted to use Cases but it's ...
5
votes
2answers
179 views

How to replace columns of a matrix with an unsorted ordered list.

I have a matrix that I would like to replace the values of each column with where they are in an ordered list of values from least to greatest. For example, if I have ...
2
votes
1answer
163 views

How to delete duplicates of certain values in list of lists in a specific column of all sublists?

Let's say I have a list of lists like data={{1,0},{2,1},{2,0},{3,0},{4,0},{5,1},{5,0},{6,0},{7,0},{8,1},{8,0},{9,3},{9,2},{9,1},{9,0},{10,0}}; with varying ...
1
vote
1answer
879 views
0
votes
0answers
79 views

Designing a Manipulate Block

I am trying to create a Manipulate block which contains tabels, graphs and explanations. In the first row I want to add some tables and explanations, but sometimes the tabels are cut. For doing this I ...
-3
votes
2answers
107 views

How to make a list of columns [closed]

I have three functions: n, n^2, n^3. Range is 20 numbers. My task is to make a list of columns of n, n^2, n^3 for numbers n upto 20. It supposed to look like this:
0
votes
1answer
1k views

Help: Shifted columns values of a dataset [closed]

How do i add a new column to a Dataset that is the shifted version of another column with nulls placed in missing places. (just like the function shift in pandas in ...
2
votes
3answers
512 views

Change entire column of matrix using its own elements for calculations [duplicate]

I am aware that there are discussions here about multiplying rows or columns in matrices, but I cannot figure out what to do in the following two cases. I have a matrix, lets say ...
6
votes
1answer
59 views

How can I prevent SlideView from undoing column spacings?

I am putting together a presentation with SlideView. Within many of the slides I have calls to Column using the ...
3
votes
2answers
316 views

Switch Orientation of Rows/Columns in Grid, Column layout constructs

Column layout construct has the BaselinePosition option where you can specify the origin placement for the "bars", e.g. Bottom (Vertical orientation). Here is some data to play with: ...
3
votes
1answer
248 views

Add columns with dummies and specific headers to dataset

I got a dataset that looks like the following example: ...
-2
votes
1answer
78 views

Plotting output in two columns beside each other from a for loop [closed]

How can I have the output plots in two columns instead of having the plots in a sequence? Like the following: []
1
vote
1answer
94 views

Column (and Grid) Alignment Changes with OpenerView

Column does not maintain Alignment settings when OpenerView opens and closes. ...
3
votes
0answers
129 views

Grid column width too large when alignment rules are used

I would like to use Grid to display the results of a series of calculations and an information graphic on many items. The grid has a name and a category column with ...
1
vote
1answer
171 views

Nesting Rows and Columns

I have a hierarchical but row based spreadsheet file that looks like this when imported : ...