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.

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2015년 11월 15일
out = A(:,2:5)

댓글 수: 3

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Numeric Types에 대해 자세히 알아보기

질문:

2015년 11월 15일

댓글:

2015년 11월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by