Questions tagged as 'matrices'

0
answers

Problem with C pointers

My problem is this: I have the following code char v = 65; char k = 65; char* un = calloc(2, sizeof(char)); for (int i = 0; (25*i < dot) && (i <= 25); i++){ un[0] = v; for (j = 0; (j <= 25) && ((j + (25*i)) &l...
asked by 12.04.2018 / 20:01
1
answer

Matrices between Java classes

I have a question like they would do to use a matrix in several classes, my problem is that I have to create buttons in java but inside them I can not create methods. modificacion_Usuario.addActionListener(new ActionListener() {...
asked by 23.03.2018 / 21:31
0
answers

I have problem with matrices in python

I have problems, I can not assign the complete data to the vector, it must be complete in the matrix and I could not, since I try to change the data type of the matrix, it does not give me. enter the description of the link here import...
asked by 18.03.2018 / 03:46
1
answer

Transcription of an impression in an arrangement

I have the following code, and it asks me to modify it so that it prints it to be inserted in a matrix (two-dimensional array), how could it do it? static int siguiente(int nn, int tope) { if (nn == tope) { return 0; } else {...
asked by 09.03.2018 / 18:07
0
answers

Question about matrix in java

I need to do this exercise Perform a Program that allows filling a square matrix of NxN and obtaining the following values: 1) Main and secondary diagonal 2) Sum of elements in each row 3) Value of an element in position X (row) an...
asked by 06.03.2018 / 04:09
0
answers

how to convert to function

could guide me to pass this code to function in matlab please: Gauss-Jordan method format rat A=[2 -1 3 5; 4 2 3 7; -2 3 0 -3]; %% entrada de % datos %% B=(A); for i=1:length(B(:,1)) %%para i desde la primera fila hasta el númer...
asked by 28.02.2018 / 07:01
0
answers

conversion from an imageview to bitmap to paint lmangenes

I do not know much about the programming in android studio but now I have to subtract an image selected by the user in an imageview and convert it into a bitmap to be able to modify the colors of the image through the paint class, the problem is...
asked by 01.03.2018 / 21:01
1
answer

No Change My Matrix Matlab

I'm doing a division of a column of a Matrix All that data column by data I divide it between other data (In specific that I already have) all right up there if you make me my division of my Matrix >> MatH(posy,:)./(MatH(posy,po...
asked by 15.02.2018 / 05:06
0
answers

How can I get the boats to be placed in the matrix without touching?

The two 1 represent a ship, the two 2 represent a ship and the two 3 represent another ship. the boats have 2 cells of size and must be placed using random and without touching. How can I get the boats to place themselves in the matrix withou...
asked by 20.01.2018 / 19:12
2
answers

Display data from a matrix

I need help to show the data of a matrix, I use a variable a, which indicates the number of records (columns) it will have and 4 are the rows or fields it contains (identification, name, address, phone), The problem I have is that I need to ente...
asked by 22.01.2018 / 03:26