How do you do matrix math?
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Hey all,
How can you develop a 3 x 3 matrix with elements ranging from 1 to 9. Then perform the calculation that Add 40 to it, divide element-wise by 7, subtract 2 from it, take the square root of the result then take the exponential of that. Do all thismath in one line of code.
6 件のコメント
James Tursa
2020 年 9 月 15 日
What have you done so far? What specific problems are you having with your code?
stozaki
2020 年 9 月 15 日
Hello Nicholas,
All of them are described in the document, so please refer to them.
stozaki
Walter Roberson
2020 年 9 月 15 日
See also magic()
Nicholas Deosaran
2020 年 9 月 15 日
KSSV
2020 年 9 月 15 日
Read about BODMAS rules..
d =[1 2 3; 4 5 6; 7 8 9]
(d+40)/7-2
Nicholas Deosaran
2020 年 9 月 15 日
回答 (1 件)
KSSV
2020 年 9 月 15 日
Read about exp, sqrt. If A is my matrix, to get exp of sqrt, I will use.
iwant = exp(sqrt(A)) ;
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!