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 years ago | 1 answer | 0

1

answer

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 years ago | 1 answer | 0

1

answer

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 years ago | 1 answer | 0

1

answer

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 years ago | 1 answer | 1

1

answer

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 0 answers | 0

0

answers

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

5 years ago | 1 answer | 0

1

answer

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

5 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years 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(...

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 3 answers | 3

3

answers

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

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

6 years ago | 4 answers | 0

4

answers

Question


How can I restore a previous version of an m-file that I have accidentally overwritten with a MAT-file ?
How can I restore a previous version of an m-file that I have accidentally overwritten with a MAT-file (I guess with the command...

6 years ago | 2 answers | 1

2

answers