Community Profile

# Sim

Last seen: Today Aktiv seit 2019

#### Statistiken

All

Abzeichen anzeigen

#### Content Feed

Anzeigen nach

Frage

Highest-quality printed graphics with exportgraphics
Typical commands for exportgraphics are the following: exportgraphics(fig, 'output.tif') % raster fo...

3 Tage vor | 1 Antwort | 0

### 1

Antwort

Frage

Extract "labelhandles" from Legend
Given the definition of Legend in Matlab: [leg,labelhandles,outH,outM] = legend(varargin) Would it be possible to get the cont...

4 Tage vor | 1 Antwort | 1

### 1

Antwort

Beantwortet
If we have 2 Legend's outputs, the "Number of Columns" option does not work
I might have found a solution, but the "FaceAlpha" option acts on both the figure patches and the legend symbols: N = 100; x =...

4 Tage vor | 0

| akzeptiert

Frage

If we have 2 Legend's outputs, the "Number of Columns" option does not work
Case 1. If we add the "Number of Columns" option to the Legend, and if we have 2 Legend's outputs, the number of columns does no...

4 Tage vor | 1 Antwort | 0

### 1

Antwort

Frage

A compact “if” statement using “or” operator
A more compact way to write the “if” statement using “or” operator, than this one? if i == 1 || i == 2 || i == 7 || i == 8 || i...

4 Tage vor | 1 Antwort | 0

### 1

Antwort

Frage

How to create curved arrows by giving tail and head coordinates?
How to create curved arrows by giving tail and head coordinates as inputs? Maybe giving a radius of curvature as input, as well...

5 Tage vor | 1 Antwort | 0

### 1

Antwort

Beantwortet
The annotation('textarrow',...) does not go out of a plot
I found this solution. In case you know something better, please let me know! hf = figure; ax = subplot(3,3,5); hold on sc...

6 Tage vor | 0

| akzeptiert

Frage

The annotation('textarrow',...) does not go out of a plot
How to place an annotation('textarrow',...) out of a plot? hf = figure; ax = subplot(3,3,5); hold on scatter(0:3,0:3,[],'fil...

6 Tage vor | 1 Antwort | 0

### 1

Antwort

Beantwortet
How can I put shapes (as circles, and arrows) and (multi-rows) texts outside a Matlab plot?
I found a minimum working example: ax = subplot(3,3,5); hold on scatter(0:3,0:3,[],'filled','Clipping', 'off') plot(0:3,0:3,...

6 Tage vor | 0

Frage

How can I put shapes (as circles, and arrows) and (multi-rows) texts outside a Matlab plot?
How can I put shapes (as circles, and arrows) and (multi-rows) texts outside a Matlab plot, as in the following picture? Indeed...

7 Tage vor | 2 Antworten | 0

### 2

Antworten

Frage

Why is the calculated Rsquare different between the embedded fit function and the EzyFit function (from File Exchange)?
Sorry, I think I have overwritten a new question over an old one... is there a way to restore the old question?

14 Tage vor | 1 Antwort | 0

### 1

Antwort

Frage

(i) x-and-y scales defined as "log", or (ii) calculate the log of variables, or (iii) loglog
Are these three methods (and the corresponding plots) equivalent ways to perform the same task ? % Method 1 figure axes('XSca...

27 Tage vor | 2 Antworten | 0

### 2

Antworten

Frage

from cell to datetime
A silly question: where is the error here below? a={'Monday, 03-Jul-2017 15:00:00'}; datetime(a,'InputFormat','dddd, dd-MMM-yy...

28 Tage vor | 1 Antwort | 0

### 1

Antwort

Frage

A suitable method to detect outliers from a non-normally distributed dataset?
I understood that a good/suitable method to detect outliers in a not normally distributed dataset (I would say skewed) would be ...

etwa ein Monat vor | 1 Antwort | 0

### 1

Antwort

Frage

A faster and more compact way to create a list of distances among all the pairs of points
Hi, could you suggest a faster and more compact way to create a list of distances among all the pairs of points? My attempt her...

etwa ein Monat vor | 3 Antworten | 0

### 3

Antworten

Frage

Find (local?) maxima when two maxima are adjacent to each other (maybe using islocalmax or findpeaks?)
In the following bar, I would have two max values (i.e. 37), one at location 1 and one at location 2 in the x-axis. Would it be...

etwa ein Monat vor | 3 Antworten | 0

### 3

Antworten

Beantwortet
How to change the Xtick direction of ONLY one of the two (top or bottom) X-axis lines ?
This is just a variation of the @dpb solution, that I have used in one case. Please note that I write it here - instead of addi...

3 Monate vor | 0

Frage

When using xline, would it be possible to have the text in one color and the lines in another color?
When using xline, would it be possible to have the text in one color and the lines in another color? % Here, I would like to ha...

3 Monate vor | 1 Antwort | 2

### 1

Antwort

Frage

How to add different texts in xline, when using arrayfun ?
How to add different texts in xline, when using arrayfun, as in the following example? % Input and current status fig = figure...

3 Monate vor | 1 Antwort | 1

### 1

Antwort

Frage

How to change the Xtick direction of ONLY one of the two (top or bottom) X-axis lines ?
The following example shows two thick X-axis lines, one at the bottom and one at the top. I would like to set the "TickDirectio...

3 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

How to extract from a PDF a table that contains empty cells, and then, how to rebuild it as a Matlab table (or cell array)?
[EDITED] How to extract from a PDF a table that contains empty cells, and then, how to rebuild it as a Matlab table (or cell arr...

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Beantwortet
How to print a figure as a PDF, that has the same size of my figure (or, how to resize the PDF according to my figure dimensions)?
Solved, thanks to the @Luca Ferro's comment (Yes, similar to my old post - and sorry for asking something similar, I did not rea...

3 Monate vor | 1

| akzeptiert

Frage

How to print a figure as a PDF, that has the same size of my figure (or, how to resize the PDF according to my figure dimensions)?
How to print a figure as a PDF, that has the same size of my figure (or, how to resize the PDF according to my figure dimensions...

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

How to bring a patch to the bottom of a figure?
How to bring a patch to the bottom of a figure? (Maybe with uistack?) [EDITED] In the following figure, I would like to have ...

3 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

A compact way to horizontally concatenate rows of many cell arrays ?
A compact way to horizontally concatenate rows of many cell arrays a{1},a{2},a{3},..,a{N} % especially for N>>1 as in the foll...

4 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

A compact way to sum the elements contained in two cell arrays (considering the case of empty cells as well)
Given two cell arrays a and b, as in the example here below, is there any compact way to: sum the elements of the first cell ar...

4 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

How to transform the normalized values of a histogram (i.e. the bars heights) in percentages?
How to transform the normalized values of this histogram (i.e. the bars heights) in percentages? I should multiply the bars va...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

calculate the euclidean distance among all the pairs of nodes and use those resulting distances as the edges weights of the graph
Given the positions of nodes in a graph, i.e. x and y coordinates of each node, is there any compact way to calculate the eucl...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

A simple way to find (in a cell array) rows that, once flipped, are duplicates of other rows?
A simple way to find (in a cell array) rows that, once flipped, are duplicates of other rows? E.g. in this example a = [ ...

6 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

Get shortest paths and distances among nodes without loop for (and possibly in a faster way)
How to get shortest paths and distances among nodes (selected from a list) without a loop for, and possibly in a faster way than...

6 Monate vor | 1 Antwort | 0

Antwort