Loading data into an array
Mostra commenti meno recenti
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 Commento
madhan ravi
il 21 Mar 2020
What have you tried? Use dlmread() or readmatrix() [if later version] and use abs() and sort().
Risposte (1)
Cris LaPierre
il 21 Mar 2020
Modificato: Cris LaPierre
il 21 Mar 2020
0 voti
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 Commento
Sara Coleman
il 21 Mar 2020
Categorie
Scopri di più su Standard File Formats in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!