167 Topics

Member Avatar for
Member Avatar for delta_frost

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 …

0
131
Member Avatar for ricepicker417

I mainly need help with creating the 3 by 4 matrix (part 3 of the assignment) as i am confused as how i would create it. However this is the entire assignment: 1. Write a function that returns the sum of all the elements in a specified column in a …

Member Avatar for vegaseat
0
2K
Member Avatar for Landoro

Hey guys,I'm new,but I study C programming language and I have this awfull problem. I have make a matrix A[n][n],in which n is an odd positive number(of course),and the matrix must "unwrap" itself with the number 1 in the middle then 2 to the top,then clockwise 3,4,5,..etc,until it wraps the …

Member Avatar for Adak
0
189
Member Avatar for ziadkassam

Hello all... I want the multiplication of the same matrix but in third, forth, fifth... degree. I have made the C++ program and this is the code: #include <stdio.h> #include <stdlib.h> #include <iostream> using namespace std; #define WIDTH 3 #define HEIGHT 3 void main(){ int a[HEIGHT][WIDTH]; int b[HEIGHT][WIDTH]; int n; …

Member Avatar for ziadkassam
0
409
Member Avatar for xikhari.some1behindu

I get this issue but i dont understand it completly. Found some suggestions online but seems they depend on the source code. This is my code and i get the error where the arrow is int j; float aa=0, modanum, count=0, temp; float[] mod =null; float[] fin = null; int[] …

Member Avatar for deceptikon
0
210
Member Avatar for anoushka
Member Avatar for sofy

not sure if this is the right place to ask, but i need some help for my problem here. i want to find inverse, upper triangular and determinant for a matrix. but i'm not sure why it doesn't work like what i want. for now, i just want try to …

0
109
Member Avatar for jamesmadison43

The goal of the program is to make a sparse matrix using circularly linked lists. basically its a matix what only has values at the locations entered, and the rest of the lactions are not defined. the question i have is the logic for the code. how would i go …

Member Avatar for jalpesh_007
0
270
Member Avatar for Vaspar

OpenGL GLUT **My question is at the end of this topic** 1) a) Use your logo you drew within a world coordinate space that has 0,0 at the center. You may choose any width and height for your world coordinate space, glut window and viewport. Be sure that you separate …

Member Avatar for Vaspar
0
775
Member Avatar for Geowil

I decided that before I would actually write the code for my planned inventory system in a game I am writing I would test it out in a small project first to make sure I know what needs to be done and if I needed to change anything. So I …

0
97
Member Avatar for nyquist

Hi, i need to create a binary matrix (one which elements can only be 1 or 0) in openCV. The nearest that I was getting is creating a matrix which elements are 8-bit values using the CV_8UC1 dataType. There must be another dataType which specifies that the matrix elements are …

Member Avatar for vijayan121
0
6K
Member Avatar for hauda67

for (k=0; k<M; k++) for (i=0; i<N; i++){ c[i][k]=0.0; for(j=0;j<P;j++) c[i][k]+ =a[i][j]*b[j][k]; I have implemented the above sequential matrix-matrix multiplication algorithm, but i'm not sure about implementing a method to display the output to verify that the algorithm works as expected.

Member Avatar for NormR1
0
468
Member Avatar for Vectorizm

I know it's a bad practice to post the same question on more than one help site (I posted it on Stackoverflow, but after some time your question loses its place on the "active" list and people stop reading it) but I'm really desperate here. So my question is: I …

Member Avatar for Vectorizm
0
374
Member Avatar for dan1992

How to make this program #include <stdio.h> #include <conio.h> #include <math.h> int main(){ clrscr(); for(i=0;i<10;i++) for(j=0;j<10;j++) printf("a[%d][%d] = %d \n",i,j,a[i][j]); printf("cu pointer\n"); for(i=0;i<10;i++) for(j=0;j<10;j++) printf("a[%d][%d] = %d \n",i,j,*(p+i)); getch(); } int a[4][4],b4[3][3],b1[3][3],b2[3][3],b3[3][3],n,c1,c2,c3,c4,i,j; printf("\nIntroduceti elementele Matricei cu 4 linii si 4 coloane: \n"); int *mat; n=4; for (i=0; i<n; i++){ for …

Member Avatar for dan1992
0
167
Member Avatar for svcj92
Member Avatar for phummon

Hola code gurus, I’m wondering if there’s a way to use a string to access a specific item in a matrix of int[X]. I have a program which uses enums as iterators to reference a large amount of data. To select an item in the matrix, the user will enter …

Member Avatar for phummon
0
317
Member Avatar for dheredhere

Hey guys! I have an encryption project for school and i have to randomly generate a 3x3 matrix. I know how to assign the values to the 2d array but i am unsure how to return the array. I know it is possible to return a vector of a vector …

Member Avatar for deceptikon
0
306
Member Avatar for deval90

/***** The prompt i have is : use a class with 3 member functions named InputMatrix, Calculate, and OutMatrix. The program will prompt the user to (e)enter the matrix data, (c) to calculate the matrix multiplication, (d) to display the input and output matrices, and (q) to quit. no exit() …

Member Avatar for mike_2000_17
0
248
Member Avatar for MicrosoftMahmou

hi Am trying to write a C-code that multiply two matrices but i want the elemnets of every matrix is random number using time function main() { srand ( time(NULL) ); int m1[10][10]; m1[10][10] = rand() % 10; scanf("%d%d",&r1,&c1); scanf("%d%d",&r2,&c2); if(r2==c1) { . . . . } this is the …

Member Avatar for zeroliken
0
223
Member Avatar for zhouy

This is my matrix. I want to solve C,D and E <uploaded> Can anyone give me the sample codes to solve C, D and E in VB.Net? Answers are C=0.4857143, D=0.0000000 and E=-0.1428571 (manual calculation) Thanks!

Member Avatar for zhouy
0
1K
Member Avatar for hey.howdy

[CODE] // a code to produce matrix style affect #include "stdafx.h" #include<iostream> using namespace std; int modulus(int Number, int number); char getchar(int lowerlimit, char a, int upperlimit); int modulus(int Number, int number) { int q=Number/number; return Number-(q*number); } char getchar(int lowerlimit, char a, int upperlimit) { return (a+modulus(lowerlimit,upperlimit)); } int …

Member Avatar for histrungalot
0
195
Member Avatar for hey.howdy

[CODE] // a code to produce matrix style affect #include "stdafx.h" #include<iostream> using namespace std; int modulus(int Number, int number); char getchar(int lowerlimit, char a, int upperlimit); int modulus(int Number, int number) { int q=Number/number; return Number-(q*number); } char getchar(int lowerlimit, char a, int upperlimit) { return (a+modulus(lowerlimit,upperlimit)); } int …

Member Avatar for histrungalot
1
111
Member Avatar for jnewman3

So I have a matrix class that must run on a unix/linux server. The main is a test file that is provided by the instructor. When I compile my code in visual studio it works fine except for test 8 because I can't figure out how to return a print …

Member Avatar for jnewman3
0
1K
Member Avatar for stakeMyHeart

the top most left (corner) is the starting point. then it will travel. the gray areas are the traveled areas. In this 2 dimensional array how will i measure the diagonality of these traveled paths?

Member Avatar for stakeMyHeart
0
203
Member Avatar for manisha

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 …

Member Avatar for manisha
0
232
Member Avatar for pwolf

Is there something wrong with this code i wrote? i get the feeling i made a mistake and cant quite recall what, its quite frustrating. The function is supposed to determine the dimensions of a matrix and if it is, or is not, a valid matrix ( for example, if …

Member Avatar for pwolf
0
205
Member Avatar for PrimePackster

Here i have a working code, what i want to know is: When the user inputs elements to the array, i want it to be automatically aligned in form of an matrix. Instead of [ICODE] 1 2 3 4 5 6 etc....[/ICODE] But just as a matrix, like this [ICODE] …

Member Avatar for PrimePackster
0
254
Member Avatar for kikic

Matrix given in memory; the objective is to print the spiral in opposite direction from clockwise (left column down the right lower range, right up column, a series of upper left, etc. until you get to the environment). This works just for dimension 3x3. It should works for MxN dimension, …

Member Avatar for zeroliken
0
293
Member Avatar for borchu

I have question about if my input matrix was | 1 2 3 4 | | 2 3 4 5 | | 3 4 5 6 | how I would get an output matrix | 0 0 0 0 0 0 | | 0 1 2 3 4 0 | …

Member Avatar for borchu
0
183
Member Avatar for kikic

I made a code in assembly 8086. I load matrix (array) in memory with dimension 3x3. but this code works just for this dimension of matrix 3x3. Could someone give me an idea how could i make it to work with dimension m x n? the array is loaded in …

Member Avatar for kikic
0
225

The End.