Questions tagged as 'matriz'

1
answer

Separate values from a list of summaries in R

From the previous question How to execute a looping in R and save the results of a summary in a vector I have a list of 20 summaries with values calculated from a specified template. One of the answers obtained is of the form smry_list[[2]]...
asked by 18.04.2018 / 14:22
3
answers

Find the size of the largest sequence of # in an array. JAVA

I'm new to Java and found this problem:    Given an array of characters ('.' or '#'), your task is to indicate the   size of the largest contiguous segment (horizontal or vertical) of   characters '#' This is my code so far: import java...
asked by 18.03.2018 / 12:37
1
answer

How can I construct a table result using "eventReactive" in shiny

How can I create a "table result" for each relationship I chose in the selectInput "Col" and "Row"? Dinamicaly, for each time you press the 'ok' button. library(shiny) shinyUI(fluidPage( h4("Give a valor between 0 to 5, to each col/row relat...
asked by 15.03.2018 / 16:54
1
answer

Dynamic array as a parameter in C or C ++?

After hours of research, I did not find anything that answered my question, or I could not understand the answer. I want to create a NxN array of variable size. I did with pointers , but I want to pass it as a parameter between functions, a fu...
asked by 25.03.2018 / 06:51
1
answer

Error reading values for a dynamically allocated array

Good afternoon, I'm doing some code to study more about memory allocation in C with the malloc function, and I was developing a code to allocate an array and then read values and save it, but it is giving error while executing and closing the...
asked by 11.12.2017 / 20:33
1
answer

Exchanging rows from an array

Below is my code. I need to change line 1 to line 3 and line 2 to line 4. The problem is that the third line is not changing and I do not find the problem. int matriz[TAM][TAM], n = 0, x = 0, y = 0, aux = 0, aux2 = 0, aux3 = 0; printf...
asked by 22.01.2018 / 14:31
2
answers

Is it possible to assign the first column of a line of a / a vector / matrix?

having as example a vector of two dimensions of type char 2x2: char vet[2][2]; Is it possible to assign to the first line indices of this vector? or do they work like a pointer to the other rows and columns? I tried to do it as fo...
asked by 07.09.2017 / 22:54
2
answers

How to make the remainder of the division of a float by a number in c?

I am a beginner in programming in c, I have here an exercise problem and calculate the mean of the odd ones in a matrix that receives real numbers. However, I'm having the following error:    error: invalid operands to binary% (have 'float' a...
asked by 17.07.2017 / 17:11
1
answer

Modify = 2D array using pointers

I would like to modify my array (multiplying by 2 each of its elements) using pointers, but I do not know why my code is not working ... #include<stdio.h> void changematrix(int **mm,int row, int column) { int i,j; for( i = 0;i &...
asked by 18.04.2017 / 06:21
1
answer

How do one array run inside another using functions?

I have two functions, one belongs to a 10x10 array and the other to a 3x3 array. I need to make the 3x3 array run within the 10x10 array. How do I do this? Thank you in advance for your help. Example: this is the 3x3 array: void conv(...
asked by 19.02.2017 / 21:26