Domanda


figure doesn't appear in new window
I'm trying to plot two figures for p = 1:2 figure(1) subplot(1,2,p) plt = plot(1:10,rand(10,1),'LineWidth', 1....

oltre 6 anni fa | 2 risposte | 0

2

risposte

Domanda


Change the alignment and font size of edgelabels
Hi, For example, if Ihave the following graph s = [1 1 1 2 2 3 3 4 4 5 6 7]; t = [2 3 4 5 6 5 7 6 7 8 8 8]; G = digraph(s,t)...

oltre 6 anni fa | 2 risposte | 0

2

risposte

Domanda


Multiply a scalar to all column of a table
I've a table, T. I want to mulitply a scalar to all values in the table (similary to scalar multiplication of a matrix e.g. 2*ra...

oltre 6 anni fa | 1 risposta | 1

1

risposta

Domanda


Positioning new nodes in a graph
I've the following graph s = [1 1 1 2 2]; t = [2 3 4 2 5]; G = graph(s,t); % plot h = plot(G); h.XData h.YData New nodes...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Accessing field names in struct
I've the following struct test = struct(... 'a',false,... 'b',false,... 'c',false,... ...

oltre 6 anni fa | 2 risposte | 0

2

risposte

Domanda


Question on using interpolate function
This is a follow-up to my previous post here. I want to find the x value at which data has 5.0 (first occurence). I tried using...

oltre 6 anni fa | 2 risposte | 0

2

risposte

Domanda


Question on using interpolate function
I've the following x = [1 2 3 4 5 6]; data = [0.1 0.2 0.3 0.4 0.4 0.4]; vq1 = interp1(data,x,0.4) I want to find the x valu...

oltre 6 anni fa | 2 risposte | 0

2

risposte

Domanda


Adding two node labels to graph
I've the following graph t = [1 1 1 1 2 2 3 4 4 5 6]; h = [2 3 4 5 3 6 6 5 7 7 7]; H = graph(t,h) H.Nodes.Name = cellstr(...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Coordinates of graph nodes
I've the following code t = [1 1 1 1 2 2 3 4 4 5 6]; h = [2 3 4 5 3 6 6 5 7 7 7]; pos = [75 25; 115 45; 90 60; 10 5; 45 0;...

oltre 6 anni fa | 0 risposte | 0

0

risposte

Domanda


Setting the range of colormap
I want to set the min and max range of colormap I want to set the limits of colormap based on the mix and max of values stored ...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Visualizing values of nodes in a graph
I'm trying to visualize the values assigned to graph nodes tail = 1:9; head = 2:10; G = graph(tail,head); data ...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Assigning values to nodes of a graph
I'm assigning values to nodes of a graph tail = 1:9; head = 2:10; G = graph(tail,head); data = 1:10; G.Nodes.Value = data'...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Finding X value for a corresponding Y value from contents of a table
I'd like to find values from the following table. 0 3.0000 1.0000 1.0000 1.0000 1.0000 1.0000 ...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Problem in setting up MATlink
I am trying to set up a MATlink using the instructions given here. I get an error while running the following commands Needs["M...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Refactoring classes in MATLAB
Is there a solution for this now? https://in.mathworks.com/matlabcentral/answers/401917-automatic-refactoring-of-classes

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Sort the rows of a table based on row entries in two columns of another table
I've the following tables Tleft> EndNodes_1 EndNodes_2 __________ __________ {'1' } {'Node9' } ...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Assigning arrays to edge properties of a graph
I'm trying to assign arrays to edge properties/weights tail = 1:3; head = 2:4; G = graph(tail,head); G.Edges.property(1) = 1...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Filter contents of a table
I've the following table tbl = table(['1'; '2'; '3'; '4'; '5'; '6'],['1'; '3'; '2'; '2'; '4'; '1'],'VariableNames', {'name', 'v...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Sum two arrays using logical indices
I want to sum two arrays a = [ 1 2 3]; b = [2 3 1 ]; a_logical = [0 1 0]; a_logical = ~a_logical; b_logical = [1 0 0]; b_l...

oltre 6 anni fa | 2 risposte | 0

2

risposte

Domanda


Swapping entries in column of table
I've the following table and I want to swap the entries tbl = table({'1', '2'; '2', '3'; '2', '3'; '3', '4'},'VariableNames...

oltre 6 anni fa | 2 risposte | 0

2

risposte

Domanda


String comparison in table
This is a follow up to my previous question. t = table({'1', '2'; '2', '3'; '2', '3'; '4', '5'}, [1; 2; 1; 2], 'VariableNames...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Storing values in a variable
I want to store values in a variable annd return it to another function For example, function A = fun() A([2 3 4]) = [1 4 7...

oltre 6 anni fa | 0 risposte | 0

0

risposte

Domanda


splitvars for input arguments of type 'cell'
The following contents are stored in a table, in variable 'tbl', Multico value ______________ {'...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Filter contents of a table
The following contents are stored in a table, in variable 'tbl', Multico value ______________...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


simulation of flow in pipe networks
I'd like to know if it there is any toolbox available in MATLAB to study solute transport in the following pipe section

oltre 6 anni fa | 0 risposte | 1

0

risposte

Domanda


Append rows to an empty table
I am trying to append rows to an empty table t = table for i = 1:3 column1 = rand(2,1) column2 = rand(2,1) tempt = table(...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Find the list of edges between 2 nodes
I've the following graph with multiple edges. tail = [1 2 2 4 5 3] head = [2 4 5 3 3 6] I would like to know how to find ...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Visualizing flow through graph networks
I've the following graph. tail = 1:9; head = 2:10; G = graph(tail,head); data = 1:10; G.Nodes.Value = data'; p = plot(G...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Avoid using latex interpreter in plot titles
I am trying the following s = struct('a','a_dot') plot(1:10,1:10) title(s.a) I want to retain the title name as 'a_dot' an...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Domanda


Multi line color in graph
Hi, While trying to plot a graph plot(1:10, rand(10,10)) Each line has a different color. Is it possible to vary the colo...

oltre 6 anni fa | 1 risposta | 0

1

risposta

Carica altro