Questions tagged as 'matriz'

1
answer

Print multiple arrays separately

I would like to know if you can print these three arrays without having to create multiple for's , their printing on the screen should be separated. (I need an alternative because I have little space and the code was very extensive when I...
asked by 03.10.2016 / 04:47
1
answer

How to save information in an array?

Java masters, I'm learning about arrays, vectors, and would like to know what happens to my code as I create an array to get six names and six positions for the matrix employees. But when I print, I just print jobs and are not printing the names...
asked by 20.10.2016 / 20:16
1
answer

Count rows and null columns of an array

Please, help me with the following question: Write a complete C-language program that declares a square-sized array 5x5. Then, your program must populate this array randomly with 0s and 1s (the array should be different for each program run...
asked by 14.05.2016 / 06:19
1
answer

Assign element to array only when space is available?

I have some vectors that I need to assign in a 20x20 array, but no vector can override the other and not be printed on different lines, they should be assigned vertically or horizontally. For example, I have the vectors: int a[8] ={1,2,3,4,5,6...
asked by 09.10.2015 / 06:31
1
answer

How to pass an array to a .txt file - MATLAB

I'm reading a teste.jpg image with the imread command and transforming it into a gray image with the rgb2gray command. I need the corresponding codes of the result of this array, in a .txt file. Follow the example:...
asked by 11.11.2015 / 04:32
1
answer

Doubt about the use of 'for' in voting system

I want to make a program where the user gives the number of candidates and their names, and then the voting is started until the user types end. Help? #include<stdio.h> #include<string.h> int main() { char nome[30][30]; ch...
asked by 07.06.2015 / 20:43
1
answer

Problem with the code structure inside the switch case

When choosing option 1 (easy) the program enters case 1 correctly, but when I choose the port (0, 1 or 2) it returns to the menu, the goal is that if the port is right, the next line with the new port sequence (second line of the array) and if i...
asked by 26.04.2015 / 13:59
1
answer

how to play letter by letter of a sentence in an array?

Example: In the phrase naruto , the letter n of the frase vector is in the frase[0] position. I want to put it in mat_cript position [0][0] . Not just her, the rest of the sentence too. #include <s...
asked by 16.11.2018 / 17:05
1
answer

Why does not my bubbleSort function slowed down?

I want to call the bubbleSort code but it does not appear to run and I can not figure out the problem since it does not display any errors. #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #i...
asked by 20.10.2018 / 20:58
1
answer

How to convert hexadecimal to binary in an array in r?

I have an array with hexadecimal number, like this: [,1] [,2] [,3] [1,] "FA" "F8" "D0" [2,] "CE" "17" "6A" [3,] "0E" "D6" "22" If I try to convert to binary, with hex2bin(matriz) (biblioteca BMS) , I get: [1] 1 1 1 1 1 0 1 0...
asked by 06.08.2018 / 22:16