TRENDING NEWS

POPULAR NEWS

Give The Transpose Of M=[1 2 3] [4 5 6] [7 8 9]

HOW TO TRANSPOSE MATRIX BY USING LOOPS IN MATLAB?

Just interchange columns by rows, and rows by columns.
For example:

a = [1 2 3 4
4 5 6 9]

[m, n] = size(a);

for i = 1 : m
for j = 1 : n
at(j,i) = a(i,j); %interchange columns and rows
end
end
at %display the result

I suggest you see the example below:

What is the transpose of a matrix ?

Transpose of matrix is obtained by interchanging rows and columns of a matrix that is by changing rows to columns and columns to rows.   Lets understand the problem statement graphically and it will be more clear,AlgorithmFinding transpose of Matrix is very simple.Create a Transpose Matrix of, Rows = Total column of original matrix.Column = Total rows of original matrix.Iterate through Original matrix, and fill Transpose Matrix data by interchanging rows to column and column to rows as shown below,TransposeMatrix[col][row] = OriginalMatrix[row][col].Detailed explanation with Program : Transpose of Matrix in Java

I have 2 matrices (2X3) and (3X2). i need conditions so that when i multiply them, i dont get the identity.?

the conditions need to be set on the matrices so that when i multiply them, i dont get the identity matrix. i dont need like one exception. i need something that works for every case.
the matrices are:
A is 2x3
A= [a b c
d e f ]

B is 3x2
B= [g h
i j
k l ]

Which number logically follows this series: 4-6-9-6-14-6?

Answer is 19. The second number is always six. The numbers either side increase by five each time. Hence 4, 6, 9(4 + 5), 6, 14(9 + 5), 6, 19(14 +5)

What is the solution/logic for the given number pattern?

Looks like above pattern is working like thisStep 1 : read ’n’ as inputStep 2 : find sum of no’s starting from 1 to n (so in this case it will be (1+2+3+4+5)=15 science n=5) i will call it total for referenceStep 3 : print piramid using loop and try to replase below hard coded values with dynemic onestotal, total-n, ((total-n)-(n-1)),(((total-n)-(n-1))-(n-2)), ((((total-n)-(n-1))-(n-2))-(n-3))So for above example it will become15, (15–5),( (15–5)-(5–1)),(((15–5)-(5–1))-(5–2)),(((15–5)-(5–1))-(5–2))-(5–3)= 15, 10, 6, 3, 1

A man and his wife's ages are at a 4:3 ratio, which becomes 9:7 after 4 years. How long have they been married if ages were 5:3 when first married?

12 years.

Can you please help me in math?

PLEASE DO NOT GIVE ME THE ANSWERS, JUST THE EQUATIONS OR HOW TO SOLVE THEM.

3. A tree house has a square floor with a total area of 50 feet squared. To the nearest tenth of a foot, what is the length of one side to the floor?

7.) 8 more than 4 times a number is equal to 4 less than 6 times the number. What is the number?

9. Solve 2x-3y=12 for y

12. Solve the inequality -5/3g less than or equal to 15

13 Solve 2x-5 is less than or equal to 2x-6

16 The amount of time in minutes it takes to clean a restaurant is given by f(c) = 10+2c where c is the number of customers they had. What is the range?

19. What is the 19th term in this arithmetic sequence? 11,7,3,-1...

29. There are 6 x 10 to the 23rd power molecules of glass in a container. how many molecules of gas are in 20 such containers

How would you rotate a matrix?

Here is my code for rotating a matrix clockwise (90 degrees)n = number of rows and columns (rows==columns, square matrix)i = linej = columna[ ][ ] and b[ ][ ] = the matrixesAnd the instructions: for(i=1; i<=n; i++)                    for(j=1; j<=n; j++)                           b[i][j]=a[n-j+1][i];

TRENDING NEWS