Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Primes Checker
Given variable inputs Check if they are prime numbers

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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'

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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]

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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;

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Halder function
Find the halder function value of a number

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Cargar más