Answered

Solving transport equations in MATLAB

I just figured out pdepe can be used. Where the reaction and convection can be defined in the s term

Solving transport equations in MATLAB

I just figured out pdepe can be used. Where the reaction and convection can be defined in the s term

1 day ago | 0

Question

Solving transport equations in MATLAB

Hi All, I am looking for a toolbox in MATLAB that can be used for solving convection diffusion reaction equations in 1D. Any...

1 day ago | 1 answer | 0

Question

Question on pdepe solver

I'd like to know what's the default absolute and relative tolerance set in pdepe solver.

9 days ago | 1 answer | 0

Question

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

9 days ago | 2 answers | 0

Question

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

15 days ago | 2 answers | 0

Question

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

16 days ago | 1 answer | 0

Question

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

20 days ago | 1 answer | 0

Question

Accessing field names in struct

I've the following struct test = struct(... 'a',false,... 'b',false,... 'c',false,... ...

21 days ago | 1 answer | 0

Question

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

21 days ago | 2 answers | 0

Question

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

22 days ago | 2 answers | 0

Question

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

22 days ago | 1 answer | 0

Question

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

24 days ago | 0 answers | 0

Question

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

30 days ago | 1 answer | 0

Question

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

30 days ago | 1 answer | 0

Question

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

30 days ago | 1 answer | 0

Question

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

1 month ago | 1 answer | 0

Question

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

2 months ago | 0 answers | 0

Question

Refactoring classes in MATLAB

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

2 months ago | 1 answer | 0

Question

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

2 months ago | 1 answer | 0

Question

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

2 months ago | 1 answer | 0

Question

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

2 months ago | 1 answer | 0

Question

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

3 months ago | 2 answers | 0

Question

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

3 months ago | 2 answers | 0

Question

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

3 months ago | 0 answers | 0

Question

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

3 months ago | 0 answers | 0

Question

splitvars for input arguments of type 'cell'

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

3 months ago | 1 answer | 0

Question

Filter contents of a table

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

3 months ago | 1 answer | 0

Question

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

3 months ago | 0 answers | 0

Question

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

3 months ago | 1 answer | 0