Loading data into an array
显示 更早的评论
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 个评论
madhan ravi
2020-3-21
What have you tried? Use dlmread() or readmatrix() [if later version] and use abs() and sort().
回答(1 个)
Cris LaPierre
2020-3-21
编辑:Cris LaPierre
2020-3-21
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Standard File Formats 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!