what does the command A(:,x) means

조회 수: 5 (최근 30일)
GOPAL RAWAT
GOPAL RAWAT 2019년 3월 29일
답변: Jan 2019년 3월 29일
A being the matrix , x being some index
  댓글 수: 2
madhan ravi
madhan ravi 2019년 3월 29일
That is the reason I told you to learn about matlab indexing:
>> x=2;
>> A=rand(4)
A =
0.9516 0.2691 0.4177 0.6663
0.9203 0.4228 0.9831 0.5391
0.0527 0.5479 0.3015 0.6981
0.7379 0.9427 0.7011 0.6665
>> A(:,x)
ans =
0.2691
0.4228
0.5479
0.9427
>>
GOPAL RAWAT
GOPAL RAWAT 2019년 3월 29일
thanks for sharing the info

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

채택된 답변

Jan
Jan 2019년 3월 29일
Please read the "Getting Stared" chapters of the documentation and use Matlab's OnRamp to learn the basics: https://matlabacademy.mathworks.com/

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by