Question:
Matlab ? Creating Matrices ?? any help ?
Stang
2011-09-19 22:20:20 UTC
Write a program to create two matrices x and y of 1x3 and 3x2 sizes respectively. The output of the program should be:
a) Matrix multiplication of x and y
b)Scalar multiplication of x with 7
c) Scalar addition of u with 10.

I dont understand where to begin??????
Three answers:
?
2011-09-20 05:23:22 UTC
How much do you know about MATLAB? If you know how to make functions etc, I can help. If not you need to see some tutorials online for getting familiar with the program.



What are the values of x and y to begin with? Or do you mean "write a program to take two matrices x and y ... and make three new matrices of ...".
roskam
2016-11-09 12:04:27 UTC
B = zeros(500) This line will create a zeros Matrix B of 500 rows via 500 columns. diag(B) = 4 this might will set the diagonal to 4's. diag(B,-a million) = a million This line will set the sub diagonal to a million's diag(B,a million) = a million This line will set the large diagonal to a million's %%%%%%%%%%%%%%%%%%%%%%%%%%% B = zeros(500) diag(B) = 4 diag(B,-a million) = a million diag(B,a million) = a million B %exhibit effect i'm hoping this code is real. I dont have MATLAB obtainable to me on the 2d to benefit it.
2011-09-19 22:21:28 UTC
No


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...