Questions tagged as 'matriz'

0
answers

The handle function is not converting - matlab

Hello, I'm getting this error:    Conversion to function_handle from double is not possible. I already looked for the error and tried to change the code but without success. Can you help? A=[99.23;100.05;91;107.71;104.1]; B=[3441 344...
asked by 17.07.2017 / 13:02
2
answers

Matrix multiplication in Java

I need to make two arrays multiply, but I'm wrong at the time of multiplication. int ma[][] = new int [3][2]; int mb[][] = new int [2][2]; int mab[][] = new int [3][2]; for (int i = 0; i < ma.length; i++) { for (int...
asked by 26.10.2017 / 12:47
2
answers

Pointers and arrays picking up something not expected

#include <stdio.h> int main() { int vetor[][3] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; int valor= *(vetor[1] + 1) + **(vetor + 3); printf("%d", valor); } The code above was taken from theoretical exercises, but I do not h...
asked by 25.09.2018 / 19:32
2
answers

Why can I pass a vector of char to the scanf as an address or a direct variable?

If the vector name or array is already the address of the first element, why in scanf() , using the primitive types ( int , char , float , double ) I need to pass the address, and when we want to read a string (...
asked by 02.11.2017 / 15:46
2
answers

Array lookup within another array in Java

I need to compare two two-dimensional arrays ( int[][] ) of different sizes, the two being formed by integer values (1 or 0), to check if there is the smaller array inside the larger array. Larger array example: Smallestmatrixexample:...
asked by 20.10.2015 / 03:13
1
answer

Programming C - Exchanging matrix elements

My code below should change the elements of the array, if it is 1 it will change by 0 and if it is 0 it will change by 1. However, the printed matrix has all the elements 0: #include <stdio.h> #include <stdlib.h> #include <math....
asked by 30.06.2018 / 22:14
1
answer

Matrix with strings in Visualg

I'm having difficulty with the following question:    Create an M matrix [21,10]. Read 10 names (maximum 20 characters) and store in the first row of the array. After reading, decompose the names letter by letter and store them in the other l...
asked by 23.05.2017 / 21:19
3
answers

problem in C with remainder of the split [closed]

Develop a program that reads ten elements of a matrix A vector type. Construct a matrix B of the same type, observing the following formation law: if the value of the index is even, the value must be multiplied by 5, being odd, must be added wit...
asked by 22.09.2015 / 16:11
3
answers

How to create a Standard Deviation Mobile Window (R)

The matrix below the stock return ( ret_matrix ) for a given period. IBOV PETR4 VALE5 ITUB4 BBDC4 PETR3 [1,] -0.040630825 -0.027795652 -0.052643733 -0.053488685 -0.048455772 -0.061668282 [2,] -0.030...
asked by 04.06.2014 / 23:49
1
answer

C ++ - Convert Mat to array of integers in Opencv?

I'm doing an image manipulation project using OpenCV . I need to parse the pixels values of a "binarized" image, for this I am trying to convert my Mat file image to a array of integers, more specifically an array of integers. I'm tryi...
asked by 02.09.2016 / 21:20