Community Profile

# z8080

Last seen: 14 days ago Active since 2016

#### Content Feed

View by

Question

Cannot use 'histogram' to compute entropy
I'd like to compute the entropy of various vectors. I was going to use something like: X = randn(1,100); h1 = histogram(X, 'No...

4 months ago | 0 answers | 0

### 0

Question

Many 2D histograms, single colorbar
Consider this minimal working example: for i=1:4 numberPairs(i).matrix = randn(1000,2); subplot (2,2,i) h(i) = histogram2...

4 months ago | 1 answer | 0

### 1

Question

Cannot obtain structure elements where both field and variable are indexed into
Say I have a structure of students' information, where the indexing of both the name field and the structure itself are of inter...

5 months ago | 1 answer | 0

### 1

Question

Constructing names of array and structure variables
I'm trying to dynamically create variable names, for array and struc variables. However, my usual way (below) does not work, as ...

5 months ago | 1 answer | 0

### 1

Question

Typing the first letter(s) of a variable to get quickly to that place in the WOrkspace
WHen a list contains many items, it's very useful to get to the one you need by typing its first letter or first few letter. Thi...

1 year ago | 0 answers | 0

### 0

Error from fopen after conflicting files/paths
Apparently there is an easy (albeit superficial - note Stephen's answer!) fix for this, which I've been advised to do: issue the...

1 year ago | 0

| accepted

Question

Error from fopen after conflicting files/paths
I have a script that, at the end, writes the generated figure to an image file: fileName = 'figureOne'; print('-dpng', fileNam...

1 year ago | 2 answers | 0

### 2

Question

Control the color of characters' inside separately from their contour (text function)
When using the `text` function, by changing the colour of the font one only changes the face (inside) colour. Is there a way to ...

1 year ago | 1 answer | 0

### 1

Question

Assiging indexed values to a structure field
I would like a field of my indexed structure to take on a value similarly indexed in a different vector: struc(1:3).value=1:3 ...

1 year ago | 0 answers | 0

### 0

Question

Marker transparency AND marker size can't be set simultaneously in legends
I've been trying to control both the marker size and their transparency, in my legend. It seems to me this cannot be done, at le...

2 years ago | 0 answers | 1

### 0

Question

Legend markers displayed to the *right* of the labels
I'd like to have the markers in my Matlab plot legend displayed to the right of the labels, instead of to their left as happens ...

2 years ago | 1 answer | 0

### 1

Question

Controlling the size of legend markers separately from the font size of legend labels
I need to control the markers in my legend separately from the font size of the legends' labels. Inspired by this previous answe...

2 years ago | 2 answers | 0

### 2

Data points' locations change when clicking into a scatter plot with the Data CUrsor
In the end I think this is just a bug with scatter's "jitter" argument.

2 years ago | 0

| accepted

Question

Data points' locations change when clicking into a scatter plot with the Data CUrsor
I have two scatter plots on the same graph (same x, but different y values for the two series). Many data points within each ser...

2 years ago | 1 answer | 0

### 1

Question

Data Cursor not moving upon pressing the arrow keys in scatter plot
I find the Data Cursor in Matlab a very powerful tool when plotting data and debugging code. However, it often does not behave a...

2 years ago | 0 answers | 1

### 0

Question

Live Editor background colour
I wonder whether there is any indication from mathworks as to when the Live Editor will be getting settings that allow to custom...

2 years ago | 1 answer | 8

### 1

Question

Within- & between-subjects in 'anovan'
In the anovan function, there seems to be no way of specifying whether the data is dependent across one of the factors, i.e. whe...

2 years ago | 2 answers | 0

### 2

Question

First colum of CSV-imported table has "x___" added to its name
I have a bunch of automatically-generated CSV files with headers, which I'd like to import into Matlab as a table. I used code s...

2 years ago | 1 answer | 0

### 1

Question

Save Plot with Minimal White Space (Crop Padding)
I'd like to save my figures without the rather large white padding space that Matlab includes by default, and such that they are...

2 years ago | 1 answer | 0

### 1

Question

First variable of table formatted differently for similar CSV inputs
I have two CSV files, both produced by the same software, according to the same template. Both files look the same when opened i...

2 years ago | 1 answer | 0

### 1

Question

Converting a table of mixed numeric-string content to an array
I have a table with mixed numeric&string content: M = rep file condition corrAns ___ _...

2 years ago | 2 answers | 0

### 2

Question

Sorting a mixed text-numeric matrix (cell array) by one of its (numeric) columns
I have an Excel spreadsheet whose rows I'd like to randomly shuffle and further use in Matlab. To that end, I'm reading the XLS ...

2 years ago | 1 answer | 0

### 1

Question

Finding all occurences of a string within a cell array (itself part of a struc)
I have the following structure dataDens = dens: [1x172 double] level: {1x172 cell} raga: {1x172 cell} wi...

2 years ago | 1 answer | 0

### 1

Question

Specifying both marker type and marker size in a 'scatter' call
From the documentation of the scatter command, it seems that markers can be specified in their type or in their size, but not in...

3 years ago | 1 answer | 0

### 1

Question

Animation of plot elements “falling” down to produce a new plot (distribution/histogram)
I have line plots showing estimated pitch values of a sound recording across time: For my presentation, I'd like to suggest...

3 years ago | 0 answers | 0

### 0

Plot saved as EMF, rendered as raster as opposed to vector graphics
I'm happy to edit the question if further clarification would be needed to enable an answer or suggestion. Thanks in advance for...

3 years ago | 0

Question

Turning off the axes box for marginal boxplots
I followed <https://de.mathworks.com/help/stats/scatterhist.html#btoneo_-1 this> example to create a scatterplot with marginal b...

3 years ago | 1 answer | 0

### 1

Question

Plot saved as EMF, rendered as raster as opposed to vector graphics
I have Matlab code (too complex/inelegant to post or attempt to simplify) that produces an array of subplots that looks like thi...

3 years ago | 1 answer | 2

### 1

Question

How to set color of scatterplot bars?
I was trying to have the bars in my scatterhist plot be of the same color as the markers: x = randn(1,20); y = randn(1,2...

3 years ago | 1 answer | 0