Solved


Max Sum That You Can Get Of 2 Numbers given variable input
Given variable input length,combine 2 numbers from and output maximum sum the combinations can generate Example x = 3; y = 5;...

10 years ago

Solved


Leap year or Not
Check if a given year is Leap year or not.

10 years ago

Solved


Convert Miles To Kilometers
Given input in miles, output into kilometers

10 years ago

Solved


This is just like your weight :)
Imagine your weight as a sawtooth wave appended with a slope It varies yet the trend is increasing :) Decode the values throug...

10 years ago

Solved


Skip and Add
Given x, and y From 1 to x, add every y interval

10 years ago

Solved


Bracket contents of type {}
Return all bracket contents from a given string ({} type). Example: 'x = rho*x{-1} + (1-rho)*y{+1}' should yield a cell of '-...

10 years ago

Solved


Reverse digits of a number
Reverse digits of a number. For example, return *321* for the input *123* . The left-hand zeros can be discarded. For exam...

10 years ago

Solved


Primes Checker
Given variable inputs Check if they are prime numbers

10 years ago

Solved


Calculate BMI
BMI = (weight_in_lbs * 703) / (height_in_inches^2) Inputs are in kg and cm

10 years ago

Solved


String revert
Revert all words in a sting x for example, if x = 'this is a sentence' then y should be 'sentence a is this'

10 years ago

Solved


Magnitude of a vector
Given a vector x, what is its magnitude?

10 years ago

Solved


Check if two matrices are permutations of each other
Your function should return true for the elements of one matrix is the permutation of the other matrix: x = [1 2 3; 4 5 6; ...

10 years ago

Solved


ADD TWO NUMBERS
To add two numbers a and b, then store in y

10 years ago

Solved


Given X and Y, Get the Displacement Travelled
Given startX, start Y, endX and endY Get the displacement travelled %x = [startX endX] %y = [startY endY] x = [0 3]; y = [0...

10 years ago

Solved


Transpose Matrix Without Using Built-in Matlab Function
Transpose Matrix Without Using Built-in Matlab Function Example a = [1;2;3] out = [1 2 3]

10 years ago

Solved


Multiply all elements of vector but not me
me = 1 Just a freebie Good luck :)

10 years ago

Solved


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;

10 years ago

Solved


Add Me To Death (Sum sum sum)
Given certain vector, sum of the input vector, get the sum of 2 adjacent numbers in the input, and sum of the output vector (wh...

10 years ago

Solved


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

10 years ago

Solved


S-T-R-E-T-C-H I-T O-U-T
You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...

10 years ago

Solved


Pad zero between every adjacent values of the vector.
you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

10 years ago

Solved


Find unique number in input
Find value that occurs in odd number of input elements.

10 years ago

Solved


Calculating selling price
Cost of a Product is $x What should be the selling price if you want to gain 10%?

10 years ago

Solved


Project Euler: Problem 14, Longest Collatz sequence
The following iterative sequence is defined for the set of positive integers: n → n/2 (n is even) n → 3n + 1 (n is odd) U...

10 years ago

Solved


Halder function
Find the halder function value of a number

10 years ago

Solved


Vector multiplication
Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...

10 years ago

Solved


Vector addition
Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...

10 years ago

Solved


Select every other element of a matrix
Write a function called outMat = odd_idx( myMat ) that takes a matrix, myMat, as input argument and returns a matrix th...

10 years ago

Solved


multiply an array by its position number
You have given an array. Multiply an array by its position number

10 years ago

Solved


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

10 years ago

Load more