问题描述:
有关matlab的for loop的改写,
Rewrite the following MATLAB for loop by using matrix or array operations:
for k=1:n
x(k) = x(k)+Gx(k)*x(k)+temp/x(k);
end
Note that your code should perform the same calculation but without the for loop.
Rewrite the following MATLAB for loop by using matrix or array operations:
for k=1:n
x(k) = x(k)+Gx(k)*x(k)+temp/x(k);
end
Note that your code should perform the same calculation but without the for loop.
问题解答:
我来补答展开全文阅读