I need a position of an element in a dynamic vector to be empty, so I can check if I can put an element inside it later. However, the compiler does not allow it. Here is my code:
MATRIZ_ESPARSA *criar_matriz(MATRIZ_ESPARSA *matriz, int nr_linh...
I'm having an array of led 8x8 and an arduino one and I want to display some phrases in the array but I did not find the datasheet in any way. The numbering is HS-2388BS. Is there another way to know which line and column corresponds to the igni...
People would like to know how I can make the squared Euclidean distance between the octadimensional vectors of b and those that are not in a in a super matrix like this one in the example.
I thought so and it did not work. Anyon...
I want to create an array where the user specifies the number of rows and the number of columns.
Initially an empty matrix was given: matrix = []
The codes should
the code below was my attempt:
def gerar_matriz (n_linhas, n_colunas):
'...
How do I get the highest value from an array or vector?
For example, in this exercise I have to do a 4x4 array and return the row and column of the largest element , but I stopped there.
m = []
for i in range(4):
linha = []
for j i...
Simple question:
With the code below I estimate Kalman Filter with an AR component (1). The goal is to exit in the k_fk vector. When I have only one vector is simple. But I need to run the same code for multiple vectors. These vectors...
I would like to know how I can assign a dictionary to a set of objects.
For example, I have a 4x4 vector of 'neuron' objects:
[[<__main__.Neuronio object at 0x1035644e0>, <__main__.Neuronio object at 0x103564518>, <__main_...
I'm not understanding this error in the array.
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define MAX 800
int main () {
float ponto[MAX][MAX];
float i, j, n, y, x, aux_st, aux_s;
y = x = aux_st = au...