How does this matlab function works?
1 次查看(过去 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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!