Questions tagged as 'matrices'

0
answers

Go through all the positions of the matrix with 4 loops

I am trying the following: To go through all the positions (not elements) of a matrix. The normal way to traverse a matrix is usually done with two for, but in this case I want to get the two, that is. In the position matrix 00 01 02 03 10 11...
asked by 04.12.2017 / 18:03
1
answer

How do I make the button matrix centered?

Good morning, I'm creating a program and I need the matrix to be centered. In what way can I achieve it? This is my code to make the button array: private JPanel getPanel(){ JButton bMatriz[][] = new JButton[5][5]; JPanel panel= n...
asked by 15.11.2017 / 05:48
1
answer

Matrix in PL / SQL

I have the following question: I have three columns: the product selected by the customer in month 1 and the product selected by the customer in month 2 and the number of customers that have this provision and I want to make a matrix of which...
asked by 30.10.2017 / 15:39
2
answers

I can not interpret the problem raised [closed]

I just need help to understand it ... Make a program that asks what number you want to fill all the positions of a matrix, you choose the length of the matrix, then the matrix must appear with all the values that the user chose and the diagonal...
asked by 19.10.2017 / 17:52
1
answer

Chair point in a random number matrix

I did this program to find the saddle point in a 3 * 3 matrix, but it does not work and when the message appears that indicates where it is sometimes it is not #include <stdio.h> #include <stdlib.h> int LlenarMostrar (int Matriz[3...
asked by 08.10.2017 / 19:23
1
answer

I have a problem with re defining columns and rows in an array only once and when I use it again I leave it the same

public static void main (String args[]) { int f = Integer.parseInt(JOptionPane.showInputDialog("Cuantas filas")); int c = Integer.parseInt(JOptionPane.showInputDialog("Cuantascolumnas")); int [][]mat = new int[f][c];int cont = 0; while...
asked by 13.08.2017 / 22:42
3
answers

VBA Subindices out of range

I have a problem, to see if you can help me. I have several xml files, which I'm dealing with one by one. I take the first one I try and I keep his information and when I finish crossing it I go to the next, and so on until I no longer have m...
asked by 17.07.2017 / 18:43
0
answers

Working with matrices "invalid value encountered in double_scalars"

I am working with matrices and to solve systems of equations, in one part of the code I have factor = (matriz_v[f,k]/matriz_v[k,k]) where I get the error "invalid value encountered in double_scalars" I think it's because he's working...
asked by 12.05.2017 / 03:48
1
answer

Save an array as a .csv file in Python

I'm going to generate a 3000 x 14 matrix in Python and then I want to save it in a file, I'm using the command: import numpy as np tabla = np.random.random((3000,14)) np.savetxt('tabla.dat', tabla) This works well. The reason that brings...
asked by 06.04.2017 / 18:12
1
answer

calculate quotient in c language

The problem is based on a program that asks to calculate the sum of the elements above the secondary diagonal, calculate the sum of the secondary diagonal and divide the first by the second (matrices), that is: sum elements above of secondary di...
asked by 26.03.2017 / 18:45