Community Profile

# Michael Costa

Last seen: ungefär ett år ago Active since 2020

All

#### Content Feed

View by

Solved

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

ungefär ett år ago

Solved

Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

ungefär ett år ago

Question

Read matrices that are separated by underscores in a text file.
I have a large text file that has two header lines followed by a long list of 3x3 matrices that are separated from one another b...

ungefär 2 år ago | 1 answer | 0

### 1

Question

Comparing and removing rows of an array that are within 5% of each other
I have an array which is ~30 million x 14. It is sorted in ascending order of the first element of each row. I am trying to comp...

mer än 2 år ago | 1 answer | 0

### 1

Question

Trouble rotating a matrix using rotate
I have 3x3 rotation matrices that I am trying to rotate about specific axes and angles. When I try to rotate them using rotate,...

mer än 2 år ago | 1 answer | 0

### 1

Question

Getting a new rotation matrix from an existing one by rotating an angle about a certain axis
I have a large set of rotation matrices from which I am trying to generate another set of rotation matrices by rotating the exis...

mer än 2 år ago | 1 answer | 0

### 1

Question

Trying to build a new nx4 array from an existing nx4 array using logical values
I have a large nx4 array of quaternions (quatAB). I also have an nx1 array of energies (en) associated with the quaternions i.e....

mer än 2 år ago | 2 answers | 0

### 2

Question

Trying to build an array of row vectors such that every possible combination of the 3 vector components is included
Take a vector [i j k]. I want to build an array of such vectors, with each element ranging from 1:20, such that every possible c...

mer än 2 år ago | 1 answer | 0

### 1

Question

Trying to build an 11x9 matrix from another 11x9 matrix and other elements
I am writing a program that compares different heat exchangers in order to select the best one for the application. I have succe...

ungefär 3 år ago | 1 answer | 0

### 1

Question

Trying to create a matrix by nesting a for loop in another for loop
I am trying to create a nx9 matrix by nesting a for loop in another for loop, where n is the number of iterations of the first f...

ungefär 3 år ago | 1 answer | 0