IsmailJameel
IsmailJameel IsmailJameel
  • 07-07-2020
  • Computers and Technology
contestada

Suppose B = [1, 2 3; 4, 5,6; 7,8,9], write a program with “for” loops that

calculate the square of B.

in MATLAB​

Respuesta :

ronhagrid310
ronhagrid310 ronhagrid310
  • 07-07-2020

Answer:

You don't really need the for loop to calculate B square.

The element-wise multiplication operator can help you get the square of each element of B.

B = [1, 2 3; 4, 5,6; 7,8,9];

B = B.^2;

Hope this helps!

Answer Link

Otras preguntas

let f(x)=x^2 and g(x)=x-3 evaluate (gof)(0)
Solve the proportion, show work: a) k/6=8/16 b) 5.4/7=27/h c)15/n=20/8
what is 575% written as a mixed number
THE BERINGIA LAND BRIDGE CONNECTED WHICH TWO CONTINENTS
what type of government is it where the citizens hold the political power?
what shortcut can you use to multiply tens by tens, such as 40x60"
write an addition problem that has 9/10 as the sum
Starting at 100% I have 82 clients 2 of them didn't get a check up what percent does that leave us at ?
Why is it important to set a time limit for your group discussion?
write an addition problem that has 9/10 as the sum
good job