Question

how to convert edge list to adjacency matrix

i have the code function adj=edgeL2adjj(e) Av=[e; fliplr(e)]; nodes=unique(Av(:, 1:2)); % get all nodes, sort...

5 years ago | 1 answer | 0

Question

how to create a synthetic data set in matlab

i want to create a synthetic (artificial) data set using B A algorithm

5 years ago | 0 answers | 0

Question

how to run the m-file several times

if i have karate.txt file us.txt file, s of karate and s for us. i wrote this code to run it on karate and us data sets, it r...

5 years ago | 1 answer | 0

Question

what is the different of between k means and lite k means

Is there a difference between k means and lite k means <http://www.cad.zju.edu.cn/home/dengcai/Data/code/litekmeans.m lite km...

5 years ago | 1 answer | 0

Question

Convert adjacency matrix to specific edge list

if i have the matrix [1 0 0 0 0 1 0 0 0 ] and i want the form 1 2 3 1 2 3 1 2 3 1 1 1 2 2 2 3 3 ...

5 years ago | 0 answers | 0

Question

the values of coordinates in matlab

if i have the matrix s= [ 0 0.4000 0.5000 0.6000 0.9000 0.4000 0 0.3000 0.4000 0.5...

5 years ago | 1 answer | 0

Question

Convert edge list to adjacency matrix

if i have the following code function adj=edgeL2adj(el) nodes=sort(unique([el(:,1) el(:,2)])); % get all nodes, sorted a...

5 years ago | 1 answer | 0

Question

how to link between function

if i use division function to calculate training and test variable as follow function [training,test]=division(a) number_...

6 years ago | 2 answers | 0

Answered

how to split dataset

i assume that dataset is k=[1 2;3 4;8 5;8 9;6 5] then train set is t=[1 2;3 4;6 5] and test set is the remaining i.e test=[8 5...

how to split dataset

i assume that dataset is k=[1 2;3 4;8 5;8 9;6 5] then train set is t=[1 2;3 4;6 5] and test set is the remaining i.e test=[8 5...

6 years ago | 0

Question

how to split dataset

can I select 90% of the data for training and the remaining (10%) for test set then repeat the split 10 times?How I do that? ...

6 years ago | 2 answers | 0

Question

some files are lost !

This message appear when i install matlab program One or more of the following products are required to proceed with the ins...

6 years ago | 1 answer | 0

Question

Another way instead of for loop

I have this code for i = 1:34 for j = 1:i % <-- Note the 1:i instead of 1:n s(i,j) = abs(z(i,ind(j))-z(j,ind(i))...

6 years ago | 1 answer | 0

Question

Another way instead of for loop

I have this code for i = 1:34 for j = 1:i % <-- Note the 1:i instead of 1:n s(i,j) = abs(z(i,ind(j))-z(j,ind(i...

6 years ago | 0 answers | 0

Question

how to randomly choose some values from specific variable

consider a=[6 5 4 3 6 4 2 1] i want some values from variable 'a' say[4 3 2]or 20% of variable a

6 years ago | 1 answer | 0

Question

how to use variable that is in command window

if i have this result in command window s=[1 2 3 4] how to use this variable in another command

6 years ago | 0 answers | 0

Question

how to delete repeated coordinates

if i have d=[ 3 4; 4 3;7 6 ;6 7] so i want this result d=[ 3 4; 7 6]

6 years ago | 1 answer | 0

Question

Calling text file in matlab

if i have text file that has three column say 1 2 1 ...

6 years ago | 3 answers | 0

Question

calculate AUC for prediction

how to calculate accuracy of link prediction in social network that is calculated from equation AUC =( n′ + 0.5 × n′′) / n...

6 years ago | 0 answers | 0

Question

another method to for loop

how i can change for loop to code that is faster because i have a large dataset for i=1:n, for j=1:n, if...

6 years ago | 1 answer | 0