Pregunta


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

casi 6 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

casi 6 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

casi 6 años hace | 1 respuesta | 1

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 6 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 6 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 6 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 0 respuestas | 1

0

respuestas

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Cargar más