How does this matlab function works?
조회 수: 2 (최근 30일)
이전 댓글 표시
Could someone please explain how this function works in defining the matrices
For example,
B=zeros(size(A,1),1); C=eye(size(A));
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2014년 1월 22일
편집: Azzi Abdelmalek
2014년 1월 22일
doc size
doc zeros
doc eye
You can also try an example
>> A=[1 2 3;4 5 6]
B=zeros(size(A,1),1)
C=eye(size(A))
A =
1 2 3
4 5 6
B =
0
0
C =
1 0 0
0 1 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!