フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Please Answer the this question

1 回表示 (過去 30 日間)
SANDIPKUMAR ROYADHIKARI
SANDIPKUMAR ROYADHIKARI 2020 年 11 月 4 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
B=[1 2 3;4 1 2;2 5 3]
A(new)=A(old)+A(old)* B
res=norm(Anew)
until res=100000
How many numbers of iterations are required ?
You can initiate with A=[1; 1; 1]
Thank you.
Sandip

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 11 月 4 日
8.
  3 件のコメント
Walter Roberson
Walter Roberson 2020 年 11 月 4 日
The problem has no solution.
Your A is 3 x 1. Your B is 3 x 3. You have A*B which is (3 x 1) * (3 x 3) . But for the algebraic matrix multiplication operator * the second dimension of the first operand (A) must match the first dimension of the second operand (B), and since 1 does not match 3, the operation cannot proceed.
If you use A as a 1 x 3 vector, then after a small number of steps, the norm() is a lot past 100000. It never equals 100000 . Your B has no negatives so multiplying by B is always going to give a result larger than the original if the original is all positive, so taking further steps cannot eventually return down to the target.
Possibly there might be a solution with a different initial A.

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by