How do the numbers in a matrix relate to coordinates in 3D space. I've looked at a ton of tutorials for an answer but I still haven't come to an answer. They explain mainly the math which I try to use to answer my question, but I can't come to a conclusion I'm sure of. If I needed to apply a transformation matrix to the vertices of a model, I'd be held completely at how the matrix values correspond to x, y, and z locations. |
+0 forum
2 | ||

I have a variable x which varies from -160 to 160 through steps of 10. `x = -160:10:160;` I have a matrix T1 which is of the form ` cos(x) 0 +sin(x) 0.00; sin(x) 0 -cos(x) 0.00; 0.0000 1 0.00000 0.67; 0.0000 0 0.00000 1.00 ` How can that be represented in Matlab ? I have seen that setting T1 to the following and displaying T1 produces only the `sin` and `cos` terms in the matrix,but not the zeroes. `T1 = [cos(x) 0 sin(x) 0;sin(x) 0 -cos(x) 0];` How do I get this done ? |
+0 forum
0 | ||

hi guys, I have been using python since last 1yr. For my work I have to use large data that are at least of size 3000 to 30000 or even more quite a time. Since many months I have been using matrices. But when the size of the Matrix is even 3000X3000 it takes lot of time to build it. I want to know if this is normal or its me who is doing a mistake. I am really bugged by the time factor as I have to wait a lot to get even one single result. I shall be … |
+0 forum
5 | ||

Hi everyone! In class we just learned about pointers and the their uses. We have been given a project where we need to allocate dynamic memory for any number of matrices (up to four). All four of the matrices addresses are stored in a matrix poiner. All of this must be done outside of the main function. The user inputs the following into the prompt: A 2 3 5 2 5 3 0 9. 'A' is the name of the matrix, 2 and 3 represent the rows and columns, respectively, and the rest of the numbers is the user's data. … |
+0 forum
0 | ||

Can some one suggest best way to calculate the huge matrix. Example: [CODE] const int NUMPAT = 1212; const int NUMIN = 6; const int NUMHID1= 13; const int NUMHID2 =15; const int NUMOUT = 12; #define rando() ((double)rand()/(RAND_MAX+1)) [/CODE] Below are----- [CODE] double Input[NUMPAT+1][NUMIN+1]; double Target[NUMPAT+1][NUMOUT+1]; double SumH1[NUMPAT+1][NUMHID1+1], WeightIH1[NUMIN+1][NUMHID1+1], Hidden1[NUMPAT+1][NUMHID1+1]; double SumH2[NUMPAT+1][NUMHID2+1], WeightH1H2[NUMHID1+1][NUMHID2+1], Hidden2[NUMPAT+1][NUMHID2+1]; double SumO[NUMPAT+1][NUMOUT+1], WeightH2O[NUMHID2+1][NUMOUT+1], Output[NUMPAT+1][NUMOUT+1]; double DeltaO[NUMOUT+1],SumDOW1[NUMHID1+1],SumDOW2[NUMHID2+1],DeltaH1[NUMHID1+1],DeltaH2[NUMHID2+1]; double DeltaWeightIH1[NUMIN+1][NUMHID1+1],DeltaWeightH1H2[NUMHID1+1][NUMHID2+1],DeltaWeightH2O[NUMHID2+1][NUMOUT+1]; [/CODE] Operations required to do on those matrices are: 1) Processing the values of huge matrix and calculating results. 2) Multiplication of two matrices. 3) Adding or subtracting matrices to matrices Of course, all the matrices size … |
+0 forum
3 | ||

My friend needs a program that will: 1. Ask the user for the size of the matrix. The choices are 2x2 or 3x3. 2. Ask the user for the operation to perform. The choices are addition or subtraction. 3. Let the user input the numbers for the first matrix. 4. Let the user input the numbers for the second matrix. 5. Perform the chosen operation on the given matrices. 6. Show the solution in matrix form. 7. Ask the user if he wants to do matrix calculation again. If yes, proceed to item #1. If no, exit the math engine. |
-1 forum
2 | ||

Frame complete game, only the outer edges of a square drawn on the table is a game played with 2 players. Sequence of a square drawn from the player wants to draw a non-edge. Underline that this edge of the square is not the last edge of the square is completed and the last edge of the square belongs to the player draws. As long as the player completes a square edge may continue to draw. The aim is to have the maximum number of frames in the game. Accordingly, at least 7x7 in size up to 3x3 on a … |
+0 forum
0 | ||

Hello :) I'm from Brazil, so sorry about my english. This is the first code I post here - I'm a begginer in Python. It is a function to calculate determinants of matrices. You can attach it to a class if you wish. Please leave a comment if you wish about what could be improved in the code. Thanks! |
+0 forum
9 | ||

This is what my program is supposed to do: [LIST=1] [*]Print the vector (m1) [*]Print the matrix (m2) [*]Multiply the vector and matrix together and display results [/LIST] The only thing wrong with my program is that I can't quite get the right results displayed. The correct display of values should be: 30 70 110 150 My Values displayed are: 30 71 115 159 The display of the first number (A[0][0]) is correct (30). But A[1][0] is off by 1; A[2][0] is off by 5; A[3][0] is off by 9. I noticed that x[0][0] is 1; x[0][1] is 5; and … |
+0 forum
3 | ||

I am using [URL="http://msdn.microsoft.com/en-us/library/system.drawing.drawing2d.matrix.aspx"]matrix class[/URL] to perform image transformations.Problem is that I want to do a perspective transform, which requires a 3x3 matrix. [COLOR="Green"]system.drawing.drawing2d.matrix[/COLOR] behaves like a 3x2 matrix. Here's a short code extract of what I use the matrix for: [CODE] Graphics my_graphics= Graphics.FromImage(my_image); my_graphics.Transform = my_matrix; my_graphics.DrawImage(my_image2, new Point(0, 0)); //so I want to use my_matrix to transform my_image2 and paste it into my_image [/CODE] I am looking for a framework or something like that, that will allow me to make a 3x3 matrix and then perform image transformation with that matrix, as given in code above. Currently … |
+0 forum
1 | ||

I'm trying to do addition of matrices using pointers. But, in 3x3 matrix, only the first row of the matrix gets added, while the rest are zero. Please help me correct this. Thank You! My code is as follows :: [CODE] #include<stdio.h> #include<conio.h> int a[10][10],b[10][10],c[10][10]={0}; int i=0,j=0,k=0; int r1,c1,r2,c2; void *matrixAdd(int*,int*); void printMatrix(int*); int main() { create(); getch(); return 0; } void create() { printf("\nFor Matrix A --->\n"); printf("\nEnter Number Of Rows :: "); scanf("%d",&r1); printf("\nEnter Number Of Columns :: "); scanf("%d",&c1); printf("\nFor Matrix B --->\n"); printf("\nEnter Number Of Rows :: "); scanf("%d",&r2); printf("\nEnter Number Of Columns :: "); scanf("%d",&c2); … |
+0 forum
1 |

The End.