필터 지우기
필터 지우기

What is the meaning of A (1: ,: ) in matlab

조회 수: 58 (최근 30일)
alize beemiel
alize beemiel 2022년 2월 4일
댓글: Image Analyst 2022년 2월 5일
What is the meaning of A (1 ,: ,:) in matlab
the matrix A is 4x4
so What is the meaning A (1,: ,:) =4*A (2,: ,:)
and A (4,: ,:) =7*A (2,: ,:)

채택된 답변

Davide Masiello
Davide Masiello 2022년 2월 4일
If there are three indexes specified, it makes sense only if your matrix has three dimensions.
If it is actually 4x4, then A(1,:,:) yields the same result of A(1,:), i.e. extracting the first row of A.
So, the actual operation you are performing is A(1,:) = 4*A(2,:), which replaces the first row of A with its second row multiplied by 4.
Likewise, A(1,:) = 7*A(2,:) replaces the first row of A with its second row multiplied by 7.
  댓글 수: 4
alize beemiel
alize beemiel 2022년 2월 5일
thank you sir
for your help
Image Analyst
Image Analyst 2022년 2월 5일
@alize beemiel, spending two hours in this would greatly help you. A good investment of your time:

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by