Community Profile

photo

z8080


Last seen: ein Tag ago Active since 2016

Statistics

  • Thankful Level 4
  • First Review

View badges

Content Feed

View by

Question


Reordering legend items deletes legend handle - how can I get them back?
For the legend of a complex plot, I wish to: 1) reorder the items so that they better match the order of data points in the plo...

etwa ein Monat ago | 1 answer | 1

1

answer

Question


Condition in conditional breakpoint ignored: debugger stops there anyway
It sometimes happens that conditions I set for a given breakpoint are ignored: the debugger will stop there even if the conditio...

etwa 2 Monate ago | 1 answer | 1

1

answer

Question


"Intermediate dot indexing produced a comma-separated list.." error prevents extracting values from nested indexed fields
The following minimum working example illustrates a very common situation in Matlab, and shows the error produced when trying to...

etwa 2 Monate ago | 1 answer | 0

1

answer

Question


histogram2 images not properly saved in vector format
I used this code to generate a 2D histogram: h(i) = histogram2(pairs(:,1), pairs(:,2), -12:12, -12:12, 'DisplayStyle','tile', ...

etwa 2 Monate ago | 1 answer | 0

1

answer

Question


Version mismatch with exportgraphics? "class matlab.graphics.internal.mlprintjob has no Constant property or Static method named 'containsUIElements'"
When running fig = figure; % plotting commands.. exportgraphics(fig, 'd:\plot.emf'); I get the error Error using exportgrap...

etwa 2 Monate ago | 0 answers | 0

0

answers

Question


Highlighting ALL occurrences of a given string using Find
I'd like to search for a word that appears very often in my script — often enough that to go from occurrence to occurrence using...

3 Monate ago | 1 answer | 0

1

answer

Question


Adjusting color of highlighted words returned in a Find/Search
When text is highlighted during a Search through a Live script, it stands out insufficiently from the background, in my Matlab c...

3 Monate ago | 0 answers | 0

0

answers

Answered
Set the width of a subplot & leave all else unchanged
Managed to find this out on my own. Code of the following sort is required for the subplots: sph(i) = subplot(N_seeds, 1, i_s...

3 Monate ago | 0

| accepted

Question


Set the width of a subplot & leave all else unchanged
I have code that generates the following figure with subplots: I'd like to reduce the width of each subplot and leave more r...

3 Monate ago | 1 answer | 0

1

answer

Question


Keeping a history of plots previously generated by Live Editor code
When tweaking figures for publication, I change various parameters one at a time, and it is useful to compare the outputs (the p...

3 Monate ago | 0 answers | 0

0

answers

Question


Changing marker size in legends (gramm)
I am using the gramm toolbox to do plots of all sorts in Matlab. One thing I'm having to always edit post-hoc in most plots (i.e...

3 Monate ago | 0 answers | 0

0

answers

Question


Histogram function plots different colours from those requested
I"m trying to color-code each of 4 histograms using a predefined color scheme. Here's a minimal working example: colours = [0 3...

3 Monate ago | 2 answers | 0

2

answers

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...

10 Monate ago | 0 answers | 0

0

answers

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...

10 Monate ago | 1 answer | 0

1

answer

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...

10 Monate ago | 1 answer | 0

1

answer

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 ...

11 Monate ago | 1 answer | 0

1

answer

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...

mehr als ein Jahr ago | 1 answer | 1

1

answer

Answered
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...

fast 2 Jahre 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...

fast 2 Jahre ago | 2 answers | 0

2

answers

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 ...

fast 2 Jahre ago | 1 answer | 0

1

answer

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 ...

fast 2 Jahre ago | 0 answers | 0

0

answers

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...

mehr als 2 Jahre ago | 0 answers | 1

0

answers

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 ...

mehr als 2 Jahre ago | 1 answer | 0

1

answer

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...

mehr als 2 Jahre ago | 2 answers | 0

2

answers

Answered
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.

mehr als 2 Jahre 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...

mehr als 2 Jahre ago | 1 answer | 0

1

answer

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...

mehr als 2 Jahre ago | 0 answers | 1

0

answers

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...

mehr als 2 Jahre ago | 2 answers | 9

2

answers

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...

mehr als 2 Jahre ago | 2 answers | 0

2

answers

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...

mehr als 2 Jahre ago | 1 answer | 0

1

answer

Load more