Loading data into an array

3 visualizaciones (últimos 30 días)
Sara Coleman
Sara Coleman el 21 de Mzo. de 2020
Comentada: Sara Coleman el 21 de Mzo. de 2020
How do I load a text file with 100 numbers (10x10) into a 10x10 array? And after doing this, how do I sort the absolute value of each row only (not the entire data set) from least to greatest?
  1 comentario
madhan ravi
madhan ravi el 21 de Mzo. de 2020
What have you tried? Use dlmread() or readmatrix() [if later version] and use abs() and sort().

Iniciar sesión para comentar.

Respuestas (1)

Cris LaPierre
Cris LaPierre el 21 de Mzo. de 2020
Editada: Cris LaPierre el 21 de Mzo. de 2020
I suggest taking some time to go through MATLAB Oramp. It's a great way to familiarize yourself with MATLAB syntax. For example, Chapter 11 covers importing Data into MATLAB. Chapter 7 will show you how to use internal functions in your scripts and capture the outpus.
  1 comentario
Sara Coleman
Sara Coleman el 21 de Mzo. de 2020
Wow, I never knew about this great tool. I have been struggling with learning the syntax. I will check it out. Thanks!

Iniciar sesión para comentar.

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by