필터 지우기
필터 지우기

for loop another way to implement it

조회 수: 3 (최근 30일)
Sara
Sara 2012년 6월 27일
Is there any way to replace using for loop here by another way to do the desired?
x = zeros(length(v0),2) ;
for k = 1:length(v0)
A = [ factor1(:,k) factor2(:,k)];
b = -rhs(:,k);
x(k,:) = A\b ;
end
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 6월 27일
This seems to be the same code as in your previous Question, in which we are waiting for replies from you. http://www.mathworks.com/matlabcentral/answers/41655-index-exceeds-matrix-dimensions

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by