Questions tagged as 'matriz'

1
answer

Do not repeat letters (char) in an ASCII array

You had to create a 5x5 array by printing random characters from the ASCII table. public class ExercicioClass01g { static Scanner ler = new Scanner(System.in); public static char mat[][] = new char[5][5]; public static void gera(...
asked by 29.05.2016 / 01:09
1
answer

C ++ vector calculus

I need to implement some vector and matrix operations, such as internal product, vector, other operations with matrices (inverse calculation, transposed, conjugated, determinant, etc.) and solving certain problems of linear algebra and analytic...
asked by 23.12.2015 / 18:42
1
answer

Access values from an Object Matrix

I have a job where I should create a parking lot, at the very core of Java itself. So I have my class Carros : package estacionebemestacionamento; import javax.swing.*; import java.util.Date; import java.util.GregorianCalendar; import...
asked by 27.05.2015 / 20:32
1
answer

Python - Breaking down text file

Good evening, I need to separate a few lines from the file and according to the line append to another file. That is, a file containing 6 words will be added, according to the word for a specific file. These 6 words can increase to 8, 10,...
asked by 16.11.2018 / 00:43
2
answers

Repeated elements in an array

I'm trying to make an algorithm that finds repeating elements in any array but I do not know how. The algorithm should not check the repetition only in rows or columns, but in the whole array (this seems to me to be the most complicated). Cou...
asked by 20.05.2015 / 15:19
1
answer

Calculate covariance matrix in R

Given an array whose elements are values of a given attribute in n positions in space. How to calculate the covariance matrix (nxn) of the values of this attribute in given positions?     
asked by 28.06.2017 / 20:47
1
answer

How to generate Array-Adjacent of a BFS from a txt file? C ++

I'm using CodeBlocks. I have a .txt file that represents a maze, everything that is after : are rooms: Thefirstlineofthefileshowsthestartcoordinate,whichinthiscaseisAS.Everyletterwrepresentsawall.SomyBFShasastheinitialnode(orinitialro...
asked by 10.01.2016 / 15:43
1
answer

For in VBA Matrix

I have a database composed of two vectors: u=(a,b,c) and v=(1,2,3) In another worksheet, I have two blank vectors x and y . I need to complete the input of x (from u ), the code returns the corresponding e...
asked by 01.07.2015 / 02:04
1
answer

Ordering of string vectors and numbers

I have a problem with a facul exercise. Basically it is a store system, where I enter with the amount of stores, the quantity of products, the name of the products, and the quantity of products in each store. So far so good, my problem is in the...
asked by 03.05.2016 / 22:07
1
answer

Store values in arrays

I'm using codeblocks, I'm a beginner in programming, starting with C, because of college. The error is this: In the snippet of the code where it stores the value of the student average, only stores the correct value of the average of the firs...
asked by 12.07.2018 / 12:46