Hello,How ı should chose desired columns in a row in matrix?Thanks

A=[1 2 3 4 5; 4 5 6 7 8; 7 8 9 9 5] I want a matrix which should consist of columns from 2 to 5 except 4 in 2nd row of A.

 Akzeptierte Antwort

out = A(:,2:5)

3 Kommentare

Thanks but ı dont want the 4th column in row 2.All I need is 2nd row and its 2nd 3rd and 5th column.
Thank you so much that is all I want. Best regards

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Gefragt:

am 15 Nov. 2015

Kommentiert:

am 15 Nov. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by