查看单个帖子
旧 2010-04-02, 10:07   #1
freedom2028
初级会员
 
注册日期: 2010-04-01
年龄: 36
帖子: 1
声望力: 0
freedom2028 正向着好的方向发展
默认 求教,关于Improper assignment with rectangular empty matrix的问题

运行以下程序发现Improper assignment with rectangular empty matrix错误,请大家帮忙解决
A=[1 -3 3;3 -5 3;6 -6 4];
B=eig(A);
B=eig(A);
C=sort(B,'descend');
MIN_NUM=-99;
D=zeros([3 3]);
for i=1:3
temp=C(i);
D(:,i)=null(A+temp*eye(length(A)));
C(i)=MIN_NUM;
end
freedom2028 当前离线   回复时引用此帖