Questions tagged as 'matriz'

1
answer

Matrix - Python

I'm doing a college job that requires me to play the Space Invaders game. I was able to make the matrix of the game and now I need to put the ships inside it, for now it is like this: Ineedtoprinttheshipssotheylooklikethis:VVVVVVVVNote:Iassign'...
asked by 18.05.2018 / 23:25
1
answer

Pass array of pointers to function

People need help in this exercise. I did the whole exercise and it runs fine only in the end it gives error because of passing the array address to the function. What's the problem here? Suppose I have to pass the address of the array, make a...
asked by 09.04.2018 / 20:12
1
answer

Z-shaped square with array

I'm trying to make a java algorithm to display a string of letters arranged in a "Z" format. If the alphabet finishes, go back to A and continue until you finish the matrix. I'm really lost in relation to the matrix. Could someone help? An ex...
asked by 10.04.2018 / 02:34
0
answers

I need to read an array from the workspace

I'm trying to read a matrix from the workspace through the function " From Workspace " by passing it in the block " Matlab Function " whose input must equal the output, finally the value must be inserted in another variable " To Work...
asked by 04.04.2018 / 18:31
0
answers

Matrix does not show negative numbers

I want to add the line and in the main line of the matrix put the negative number to zero the line, however when I put the value receiving * -1 the matrix only takes the - and not the number together, what I am doing wrong ? class Matrizes...
asked by 01.04.2018 / 02:03
0
answers

Standard condition in the Gauss-Seidel method in Python

Hello, I'm trying to put a new condition in the Gauss-Seidel method. In the case, A, q and x are three matrices, and w is the number of times the interaction is made: def gauss(A, q, x, w): L = np.tril(A) U = A - L for i in range(w...
asked by 02.04.2018 / 10:18
1
answer

Matrix multiplication does not work

I'm trying to use CUDA to perform multiplication of width-matrices. But I'm encountering the following error: I have two square arrays with dimension 2632x2632. When I try to multiply them, the code does not perform multiplication, and the answe...
asked by 15.02.2018 / 21:05
0
answers

Error in Matrix C Printing

I'm trying to fill an array recursively to get how many vector values are the same, but it's not working and I do not know where the problem is. The matrix is generated from the comparison of 2 strings If the values between the vector1 [x...
asked by 05.02.2018 / 13:01
1
answer

Add row and column values and store in vector

Good afternoon, I'm doing an algorithm in which I need to store the total sums of each row and each column in different vectors. For example: vector of 5 positions receives the total of the sum of 5 rows of the matrix, each result stored in a...
asked by 03.01.2018 / 19:02
0
answers

Check neighbor in an array

I have the following problem: I have a large array [10x10 for example] It has values from 1 to 9. I should check if a vector [1, 2, 3, 4, 5] (for example) is contained in this array. When I find the first number of the vector inside the ar...
asked by 08.12.2017 / 03:10