Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How do you do matrix math?

1 Ansicht (letzte 30 Tage)
Nicholas Deosaran
Nicholas Deosaran am 15 Sep. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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 Kommentare
KSSV
KSSV am 15 Sep. 2020
Read about BODMAS rules..
d =[1 2 3; 4 5 6; 7 8 9]
(d+40)/7-2
Nicholas Deosaran
Nicholas Deosaran am 15 Sep. 2020
Thank you,
I am stuck on the part on how to take the square root of that then that the expoential of it..

Antworten (1)

KSSV
KSSV am 15 Sep. 2020
Read about exp, sqrt. If A is my matrix, to get exp of sqrt, I will use.
iwant = exp(sqrt(A)) ;

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by