How to select the first i columns of a matrix?
39 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
SSG_newbiecoder
am 20 Mär. 2018
Kommentiert: SSG_newbiecoder
am 20 Mär. 2018
Hello, I have a nxn matrix X. I need to select the first i columns alone of the matrix within a for loop. How can I do this? I'm not able to figure out the indexing for this. This is what I want
X =
-1.5145 -1.5475 -1.5556
-1.4254 -1.4856 -1.5085
-1.3363 -1.4237 -1.4614
first iteration
-1.5145
-1.4254
-1.3363
second iteration
-1.5145 -1.5475
-1.4254 -1.4856
-1.3363 -1.4237
2 Kommentare
Stephen23
am 20 Mär. 2018
A good place to learn basic (and important!) MATLAB concepts is by doing the introductory tutorials, which are highly recommended for all beginners:
These will teach you many important concepts that you need to know.
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!