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.

 Accepted Answer

out = A(:,2:5)

3 Comments

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

Sign in to comment.

More Answers (0)

Categories

Asked:

on 15 Nov 2015

Commented:

on 15 Nov 2015

Community Treasure Hunt

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

Start Hunting!