Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


Annoying population
Every year the number of annoying persons in the office triples Found the population, given a(0) and t

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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) ...

más de 9 años hace

Resuelto


Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 1 3 6 9; 0 0 1 3 6; 0 0 0 1...

más de 9 años hace

Resuelto


Exponential Growth and Decay
Calculus time!! Find dx/dy or (k) Given y(0), y(t) and t

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


Non trivial identities - round
Return x after rounding it.

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


Calculate vowel / consonant ratio of a string
Given a string, calculate the ratio of vowels to consonants for example : x = 'This is a very good Day!' y = 7/11

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


Nth root
Nth root of a number x

más de 9 años hace

Resuelto


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

más de 9 años hace

Resuelto


Find the numeric characters in a string and return their index
Given a string S, return the index of any numeric characters. S = 'The next meeting will be held in 2 weeks.'; idx = fin...

más de 9 años hace

Resuelto


Add 2
Add 2 to the input x

más de 9 años hace

Resuelto


All odd - all even
All odd numbers in x are added, while all even numers are subtracted from this. example: x = [1 2 3 4 5]; y = +(1+3+5)-...

más de 9 años hace

Resuelto


Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7

más de 9 años hace

Resuelto


Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>

más de 9 años hace

Resuelto


Rotate Matrix Depending on the input
Rotate matrix (CounterClockwise) via 90, 180 or -90 depending on the input Ex. a = [1 2 3; 4 5 6; 7 8 9] b = 90; ...

más de 9 años hace

Problema


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0.

más de 9 años hace | 1 | 104 solvers

Resuelto


square root
find square root of a number

más de 9 años hace

Resuelto


list folder contents
list the contents of a folder

más de 9 años hace

Resuelto


double
Return twice the value of the number

más de 9 años hace

Resuelto


Find maximum value of a curve
Two vectors shall be already defined: - Input vector x (e.g. x = 0:1:10) - Result vector y (e.g. y = sin(x)) Create a n...

más de 9 años hace

Resuelto


Find Out sum of principal diagonal element of given matrix
Find out sum of principal diagonal element of given matrix If A=[1 0 0; 0 1 0;0 0 1], then answer must be 3.

más de 9 años hace

Resuelto


UICBioE240 problem 1.13
Compute the following - y = x^5/(x^-1) and y = (1-(1/x^5))^-1. Have the final answer of y to equal a 1 by 2 vector.

más de 9 años hace

Resuelto


Matlab Basics II - Extract last 3 elements of a vector
Let x be a vector of unknown length, we are always interested in the last 3 numbers in the vector, write a function that gives t...

más de 9 años hace

Resuelto


Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements. Example: x = [1 2 ...

más de 9 años hace

Cargar más