Questions tagged as 'matrices'

2
answers

Spiral matrix does not work Java

This is the code I did to go through the spiral matrix, but it goes through the matrix in a different way 2000021 1970022 1860123 1714131224 1600025 public class caracol { public static void main(String[] args) { int[][] matriz...
asked by 09.09.2017 / 02:55
1
answer

Store functions in classes

I have the following exercise to perform a class that calculates several of the properties of a mathematical function.    Consider a y=f(x) function defined in a [a,b] interval. You want to sample this function. To this end, the...
asked by 09.08.2017 / 14:40
1
answer

Does not take or print the declared array C

my problem is the following, I do not know why I do not take the matrix as I declare 3x3 take me and print as if it were a common arrangement, I hope you can help me. Thank you very much! int main() { int mat [3][3]; int i, x; pr...
asked by 28.06.2017 / 18:55
1
answer

Eliminate rows and columns of a matrix, taking into account its elements

I have to create a program that eliminates rows and columns the program has to analyze all the elements of a column and if all are 0, that column and its corresponding row is deleted for example if all the elements in column 6 are 0, colum...
asked by 19.05.2017 / 21:10
2
answers

Show Figure "X" in a matrix, JAVA

I have to make an X-shaped matrix using only numbers 9 and 1 where the number 1 is the one that has to form the X. The user chooses the size of the matrix, I have a bit of the script where I have problems in the for loops and when I run the prog...
asked by 23.02.2017 / 18:42
1
answer

error: variable-sized object may not be initialized

The elements of chair points fulfill one of these conditions: Within the row are minimal and within the column are maximum. Inside the row they are maximum and inside the column they are minimum #include <stdio.h> #define N 10 t...
asked by 25.04.2017 / 15:08
1
answer

Draw on matrix

I would like to know how to fill a matrix in such a way that it would appear that I "draw" a figure, it is supposed that I should create the figure and then "paint" it (that would be done for example by adding another number to the "drawing"), I...
asked by 23.12.2018 / 18:24
0
answers

Move a matrix to the right

I am creating a project in which labels are generated automatically depending on a matrix. The matrix contains notes from students and what I'm trying to do is create the labels automatically based on the notes in the matrix, that I have mana...
asked by 30.03.2018 / 12:31
0
answers

Matrices in Maxima

I need to perform a function that generates the next type of matrix. For more information about this type of matrix, link I would like the link, the L_4. I have the definition in Python, which is the language I know the most: def pascal_u...
asked by 09.03.2018 / 18:28
0
answers

Problem importing complex matrix Mathematica, ToExpression :: esntx: Could not parse

Greetings I have a problem when importing data from a complex 3d matrix within mathematica, the matrix is of dimension {20,20,20} the command that I occupy is Q0=ToExpression[Import["Q.bin","Complex128"]] Note that Q.bin contains the whole...
asked by 06.06.2018 / 11:33