Can I solve this Matrix multiple of question?

1 回表示 (過去 30 日間)
Kardelen Demir
Kardelen Demir 2020 年 5 月 6 日
コメント済み: KSSV 2020 年 5 月 8 日
Write a matlab program to multiplication of second row and second colomn of A matrix with an entered x value. The result matrix must be assigned B matrix. A=[2 9 -3;1 6 0;-2 7 3]
  8 件のコメント
John D'Errico
John D'Errico 2020 年 5 月 6 日
Yes, but if we do your homework, then do we get credit for it? Will you tell your teacher that you asked someone to do your homework for you?
Kardelen Demir
Kardelen Demir 2020 年 5 月 6 日
I wrote here because I could not solve. you don't have to solve it, you don't even have to be on this page right now. our teachers are dealing with more important jobs now We are going through hard times as a world because of the pandemic. my teacher did not return yet

サインインしてコメントする。

採用された回答

KSSV
KSSV 2020 年 5 月 6 日
A = rand(4) ; % matrix must be square
x = rand ; % some value of x
iwant = A(2,:)*x*A(:,2)
  5 件のコメント
Kardelen Demir
Kardelen Demir 2020 年 5 月 8 日
ok i understand thank u so much i'm grateful
KSSV
KSSV 2020 年 5 月 8 日
Thanks is accepting the answer. :)

サインインしてコメントする。

その他の回答 (1 件)

Paresh yeole
Paresh yeole 2020 年 5 月 6 日
If you want to mulitply, the value at A(2,2) with x :
B = A(2,2)*x;
Or else if you want to multiply entire second column and entire second row with x and store the result in B then :
A(:,2) = A(:,2)*x;
A(2,:) = A(2,:)*x;
B = A;
If you want A(2,2) to be multipled by x for just once then divide it after the above two operations
  2 件のコメント
Kardelen Demir
Kardelen Demir 2020 年 5 月 8 日
A=[2 9 -3;1 6 0;-2 7 3]
B = A(2,2)*x
then what can i write on the program? I cant understand.
Kardelen Demir
Kardelen Demir 2020 年 5 月 8 日
i write A=[2 9 -3;1 6 0;-2 7 3]
X=rand;
B = A(2,2)*x
on program because program dont give me matrix why?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by