Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
How do you do matrix math?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
KSSV
el 15 de Sept. de 2020
Read about BODMAS rules..
d =[1 2 3; 4 5 6; 7 8 9]
(d+40)/7-2
Respuestas (1)
KSSV
el 15 de Sept. de 2020
Read about exp, sqrt. If A is my matrix, to get exp of sqrt, I will use.
iwant = exp(sqrt(A)) ;
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!