I have a matrix x=[1 2 3; 4 5 6; 7 8 9]. i wanted to replace 3rd column of matrix by a scalor value of 10. new matrix should look like x=[1 2 10; 4 5 10; 7 8 10]

 채택된 답변

KSSV
KSSV 2016년 8월 30일

1 개 추천

x(:,3) = 10

댓글 수: 1

Raghavendra Reddy P
Raghavendra Reddy P 2016년 8월 30일
sir thank you.. Actually its a small step but i got confused :)

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

질문:

2016년 8월 30일

댓글:

2016년 8월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by