Feeds
提问
Question regarding writing data to txt file
Hi, I have the following matrices: A = [10,8,6;1,4,5] B = [3,4,7;8,9,10] I would like to print my data to a txt fi...
10 years 前 | 2 个回答 | 0
2
个回答提问
Question on ploting a graph
Hi, I have a dataset that has nodes and distance between them. For example: Node1 Node2 Distance 1 2 65 ...
10 years 前 | 0 个回答 | 0
0
个回答提问
Question regarding matrix index
Hi, I've a following matrix: [1 2 3 4 5; 3 inf 5 7 inf; 5 6 7 inf inf; 2 3 4 9 1] I wanted to find the min...
10 years 前 | 3 个回答 | 0
3
个回答提问
question regarding reading .dat file in matlab
Hi, I've a dat file that looks like this: 17 9 0.010426 18 6 0.024578 19 8 0.018038 19 ...
10 years 前 | 1 个回答 | 0
1
个回答提问
Question on ismembc and any function
Hi, I am having a problem using the ismembc and any function. Here's the code that I wrote: while ~isempty(XH{i}) ...
10 years 前 | 1 个回答 | 0
1
个回答提问
Question on updating a matrix
I have to create an adjacency matrix every time an if condition is satisfied. I've written the following code. if ~isempty ...
11 years 前 | 1 个回答 | 0
1
个回答提问
question on cell array
I have a 2x2 cell array (this is just an example, I am dealing with a large matrix) Sc{1,1} = [1,2]; Sc{1,2} = [1,3,4]; ...
11 years 前 | 1 个回答 | 0
1
个回答提问
Question regarding plotting graph
I wanted to plot a graph with 300 nodes represented as a 300x300 adjacency matrix. it looks like this(it is just an example) ...
11 years 前 | 2 个回答 | 0
2
个回答提问
Question on cell arrays
Hi, I wanted to create a set of random numbers. I used the following code: for i = 1:n for j = 1:n Sc{i,j}...
11 years 前 | 1 个回答 | 0
1
个回答提问
Question on reading datafile in matlab
I have a data file that looks like this: SECTION Graph Nodes 10 Edges 5 E 1 2 10 E 2 4 2 E 4 3 1 E 9 10 9...
11 years 前 | 1 个回答 | 0
1
个回答提问
A question regarding matrices
I have a data file that looks like this: SECTION Graph Nodes 10 Edges 5 E 1 2 10 E 2 4 2 E 4 3 1 E 9 10 9...
11 years 前 | 3 个回答 | 0
3
个回答提问
question on deletion of zero
I have a cell array C{1} = [1,2,3,0,7] C{2} = [4,2,8,9,0] C{3} = [3, 1 ,0] ..and so on .I wanted to get rid of th...
11 years 前 | 0 个回答 | 0
0
个回答提问
question on cell array
I have the following cell arrays: K{1} = [0,1,2,4] K{2} = [3,6,7] K{3} = [0,3,7] I want to check if my cell array ...
11 years 前 | 2 个回答 | 1
2
个回答提问
question on routing problem
I am working on shortest path problem (dijiktra). My current code keeps track of one path from source to destination. I want to ...
11 years 前 | 1 个回答 | 0
1
个回答提问
creating a graph on matlab
I wanted to create a graph for the following cost matrix (i,j): [0 3 4 0; 3 0 5 3; 4 5 0 5; 0 3 5 0] where i a...
11 years 前 | 1 个回答 | 0
1
个回答提问
I am getting an error in ismember function
I wrote this code for dijiktras algorithm (with some modifications). When I use the ismember function I am getting the following...
11 years 前 | 1 个回答 | 0
1
个回答提问
Question about ismember function
I created a variable that stores a set of numbers for an arc (a,b). Sc{1,2} = [1,2]; Sc{2,1} = [1,2]; Sc{1,3} = [2]; Sc{3,1} = [...
11 years 前 | 1 个回答 | 0
1
个回答提问
find subset of a set
I created a variable that stores a set of numbers for an arc (a,b). Sc{1,2} = [1]; Sc{2,1} = [1]; Sc{1,3} = [2]; Sc{3,1} = [2]; ...
11 years 前 | 1 个回答 | 0
1
个回答提问
create a variable to store sets
I would like to create a variable that stores a set of numbers for an arc (a,b). S(a,b) = {1,2,3,4,5} S(b,c) = {3,4,5} e...
11 years 前 | 2 个回答 | 0
2
个回答提问
matrix for loop question
Suppose I have a matrix [1 2 3 5;1 3 4 5]. Each row represents a path and each column represents the nodes of that path. For exa...
11 years 前 | 1 个回答 | 0
1
个回答提问
Using 3d matrix inmatlab
A(:,:,1) = 1 1 0 0 1 1 1 1 1 A(:,:,2) = 1 0 0 0 0 ...
11 years 前 | 1 个回答 | 0
1
个回答提问
Input matrix for scenarios
I have a set of scenarios say 1,2,3. And each scenario has a set of zero-one matrices showing if an arc has failure or not. for...
11 years 前 | 2 个回答 | 0
2
个回答提问
Label correcting algorithm for shortest path
Can any body provide a code for label correcting algorithm for shortest path. Thankyou!
11 years 前 | 1 个回答 | 0