Question

How to get brighter colors in a colormap?

Hi, I would like to change the three colors in the bluewhitered colormap, i.e. red, white and blue into fuchsia, silver and emer...

24 days ago | 1 answer | 0

Question

Fast calculation of min for a cell array?

Hi, I have this cell array: A = 3×160 cell array Columns 1 through 5 {18×10754 double} {18×10754 double} ...

4 months ago | 1 answer | 0

Question

How to draw a northarrow on a simple plot, and not on a map?

Hi, how can I draw a northarrow on a simple plot, and not on a map? I would need a northarrow where I can set the traditional...

4 months ago | 1 answer | 0

Question

How to put a thicker \widetilde in matlab?

Hi, I am writing a legend with interpreter latex and I would need a thicker \widetilde like the other parts of the legend's t...

4 months ago | 0 answers | 0

Answered

How to draw a curly brace outside the gca?

Solution provided by Walter Roberson: https://it.mathworks.com/matlabcentral/answers/621888-draw-objects-arrows-brackets-outsid...

How to draw a curly brace outside the gca?

Solution provided by Walter Roberson: https://it.mathworks.com/matlabcentral/answers/621888-draw-objects-arrows-brackets-outsid...

4 months ago | 0

| accepted

Question

Draw objects (arrows, brackets, ...) outside the axis area

I need to draw some objects (arrows, brackets, ...) outside the axis area.. Any idea on how to do it? In particular I would nee...

4 months ago | 1 answer | 0

Question

How to draw a curly brace outside the gca?

Hi I would like to move a curly brace (with the function drawbrace) outside the gca (as the annotations, which can go outside th...

4 months ago | 2 answers | 0

Question

change the lines' widths in a stem plot, without changing the markers edges widths?

Hi, how can I change the lines' widths in a stem plot, without changing the markers edges' widths? (I just want to modifiy the ...

4 months ago | 3 answers | 0

Question

plot lines and stems behind the markers?

Hi, How can I put the plot lines and stems behind the markers?

4 months ago | 1 answer | 0

Question

Relabel the arrays' elements with an increasing order

Hi, I have this array: A = [3 3 3 3 1 1 4 4 4 4 2 2 2] and I need to relabel those elements with an increasing order, as follo...

5 months ago | 1 answer | 0

Question

Sort elements of matrices

Hi, do you have any idea on how to sort the elements of 4 matrices (here called "groups"), as shown in the picture? Some expl...

5 months ago | 1 answer | 0

Question

Align the Legend Title to the Legend body

Hi, How can I align the Legend Title to the Legend body (variables, etc..)? Maybe left-aligned ?

5 months ago | 1 answer | 0

Question

Apply the interpreter latex just to a part of the legend title

Hi, I would like to apply the interpreter Latex just to a part of the legend title. In the following attempt all the legend tit...

5 months ago | 1 answer | 0

Question

Fill between two curves is not working

Hi, I would need to fill up the area between two curves, and I tried to use the function fill as follows: fill([x fliplr(x)],[c...

6 months ago | 1 answer | 0

Question

Unable to perform assignment because the size of the left side is 7-by-1 and the size of the right side is 7-by-7

Hi, I would like to pass some extra arguments to my ODE as follows: [T,H] = ode23t(@(t,h) MYODE(t,h,G,N,e,n,z,initialnode,w,Qc...

8 months ago | 1 answer | 0

Question

Is it possible that ode23 or ode45 could result in complex numbers instead of real ones? If Yes, what are the possible reasons for getting complex numbers once you would expect real ones?

Hi, I perfromed ode23 for solving a differential equation, but after some timesteps I started to get complex numbers (i.e. the i...

8 months ago | 0 answers | 0

Question

Error in using ode23t to solve a differential equation on a graph/network

Hi, I am trying to solve a differential equation about a substance spreading on a graph/network. I am using the ode23t solver,...

8 months ago | 1 answer | 0

Question

Avoiding for-loops with subsequent elements in arrays

Hi, given this x = [0 10 20 30]; y = [20 10 10 15]; could you suggest a more compact (and faster) way to perform this operati...

9 months ago | 1 answer | 0

Question

How to add highlighted nodes and edges of a graph to the legend?

Hi, do you know how to add graphhighlighted nodes and edges to the legend? For example, in this case (highlight) , I would lik...

10 months ago | 1 answer | 0

Question

Create a graph from removed edges

Hi, I have a graph G, from which I removed some edges, getting Grm. Now I would need to get the graph composed only by the rem...

10 months ago | 1 answer | 0

Question

Quick conversion of a large (and with mixed data types) cell array into a numerical array

Hi, I have a 800'000 x 20 cell array and I would like to convert it into a 800'000 x 20 double precision array. My cell array h...

1 year ago | 1 answer | 0

Question

Calculate connected graph components of "merged graphs" (graph union)

I have two graphs, G1 and G2, and I would need to calculate the connected graph components conncomp() of the "merged graph" G1+G...

1 year ago | 1 answer | 0

Question

How can I remove the default transparency of graph edges?

How can I remove the default transparency of graph edges? (I would like bright and clear lines/edges) Here an example, where ed...

1 year ago | 1 answer | 0

Question

Remove edges in a subgraph SG using nodes IDs (numbers) from the graph G

Hi, I have a graph defined by node pairs (node IDs): s = [1 1 2 4 7 ...] t = [2 5 3 5 6 ...] Since the graph is huge and I would...

1 year ago | 1 answer | 0

Answered

connected subgraphs after deletion links

The question is not very clear, but maybe you can use my example to get what you need: % define edges s = [1 1 2 3 4 5 6 7 8 9...

connected subgraphs after deletion links

The question is not very clear, but maybe you can use my example to get what you need: % define edges s = [1 1 2 3 4 5 6 7 8 9...

1 year ago | 1

Question

How to change FontSize and FontWeight of labels using labeledge?

How to change FontSize and FontWeight of labels using labeledge? s = [1 1 2 2 3]; t = [2 3 3 4 4]; G = graph(s,t); h = plot(...

1 year ago | 1 answer | 0

Question

Select elements of a matrix based on the values of a logical array

I have a 23x4 matrix A and a 23x1 logical array B A = [ 2619834.52 1169193.206 2622778.731 ...

1 year ago | 1 answer | 0

Question

Find cycles in an undirected graph

Hi, I need to find cycles in a graph, exactly as it was asked here (and apparently without fully clear/working solutions!): fin...

1 year ago | 2 answers | 3

Answered

Find the cell index in a nested cell array, corresponding to a string (by using strcmp)

Dear All, Thanks a lot for your help! I tried all the solutions proposed (so far) by Matt J, Bruno Luong and the cyclist: cle...

Find the cell index in a nested cell array, corresponding to a string (by using strcmp)

Dear All, Thanks a lot for your help! I tried all the solutions proposed (so far) by Matt J, Bruno Luong and the cyclist: cle...

1 year ago | 0

Question

Find the cell index in a nested cell array, corresponding to a string (by using strcmp)

I have a 1×2 nested cell array A (cell array within a cell array): A = 1×2 cell array {43612×7 cell} {863892×7 c...

1 year ago | 4 answers | 0