Borrar filtros
Borrar filtros

How to create an Adjacencymatrix from arrays.

1 visualización (últimos 30 días)
Nils Pelzer
Nils Pelzer el 18 de Nov. de 2021
Comentada: Jon el 18 de Nov. de 2021
Hi Guys,
I have to create an Adjacencymatrix. My Input Data is one array with about 25000 nodes (which is important for the format, you will see later). And one 2x35000 element string which shows that the element in column one shares a connection with the element in arrow 2. My problem is that i have to create an Adjacencymatrix with 25000x25000 elements and in the format of the first array. So the order of the different rows has to be the same order as it is in array one. How can i make it possible to create the adjacencymatrix from the 2x35000 string into the 25000x25000 matrix. i really don´t know what to do.
i would appreciate if someone could help me.
greetings nils
  1 comentario
Jon
Jon el 18 de Nov. de 2021
I'm not quite understanding what is stored in your two input arrays. Can you please attach data files, or at least a screenshot showing the contents of the upper left corner of each array from the workspace tab

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by