Risolto


We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

circa 7 anni fa

Risolto


Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...

circa 7 anni fa

Risolto


First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

circa 7 anni fa

Risolto


Reduce the logic
We have three logical input, x,y and z. The output is: y = ((x&y)|z)&((z|x&y)|(z&y|x))|((x&z)|z)&((y|x&z)|(z&x|y))|(x|y|z) ...

quasi 8 anni fa

Risolto


Primes Checker
Given variable inputs Check if they are prime numbers

quasi 8 anni fa

Risolto


Counting votes
x is a vector of votes, e.g. x=[1 2 3 2 2 1 3 2 1 2 2 2 2], who is the winner? 1,2,3?

quasi 8 anni fa

Risolto


Add the odd numbers
Add only the odd numbers of x example: x = [1 2 3 4 5] the positive numbers are: 1 3 5, so their sum is 9

quasi 8 anni fa

Risolto


Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

quasi 8 anni fa

Risolto


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

quasi 8 anni fa

Risolto


While I am not equal
Iterate by z(input) until not equal to baseline. Output will be equal to number of iterations x = -5 y = 8 z = 3 output = 5

quasi 8 anni fa

Risolto


99 bottels of beer...
(don't know the song? -> <https://en.wikipedia.org/wiki/99_Bottles_of_Beer>) Create the count down vector in y

quasi 8 anni fa

Risolto


Back to Basics
Dot product of vectors. Given two vectors A and B, calculate their dot product. A=[1 2 3]; B=[3 2 1]; C=10;

quasi 8 anni fa

Risolto


What's my favourite food?
The spicier the better.

quasi 8 anni fa

Risolto


Non trivial identities - round
Return x after rounding it.

quasi 8 anni fa

Risolto


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

quasi 8 anni fa

Risolto


Strangest ways to get 0
Propose your non-trivial way to get 0. Look mine's, and try to do your best!

quasi 8 anni fa

Risolto


Nth root
Nth root of a number x

quasi 8 anni fa

Risposto
Convert date to specific format julian date
My understanding was that Julian usually referred to the number of days since Jan 1 4713 BC, but judging by your example, you ar...

quasi 8 anni fa | 0

Risposto
Problem with control of Dynamixel AX-12A by using MatLab
I believe I ran into the same type of problem while trying to communicate with some Dynamixel servos. My solution was just to cr...

quasi 8 anni fa | 0

Risolto


Rutgers Homework 3 Problem 1
In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instanc...

quasi 8 anni fa

Risolto


Rutgers Homework 3 Problem 2
Please create a function that answers homework problem 3.2. You can find the full problem statement here: https://drive.go...

quasi 8 anni fa

Risolto


Rutgers Homework 3 Problem 3
Please solve homework 3 problem 3. You can find the full problem statement here: https://drive.google.com/file/d/0B9G6VyQG...

quasi 8 anni fa

Risolto


Rutgers Homework 3 Problem 4
Please solve homework 3 problem 4. You can find the full problem statement here: https://drive.google.com/file/d/0B9G6VyQG...

quasi 8 anni fa

Risolto


Odd row
Create a row 'y' with odd numbers where the range of numbers is given by 'x' and the space between them by 'm'. The first number...

quasi 8 anni fa

Risolto


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

quasi 8 anni fa

Risolto


Narcissistic number ?
Inspired by Problem 2056 created by Ted. In recreational number theory, a narcissistic number is a number that is the sum of ...

quasi 8 anni fa

Risolto


Max of a Vector
Write a function to return the max of a vector

quasi 8 anni fa

Risolto


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

quasi 8 anni fa

Risolto


surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

quasi 8 anni fa

Risolto


Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

quasi 8 anni fa

Carica altro