A résolu


I hope to lose weight healthily...
In order to reduce weight healthily, weight will be reduced by 4% every month. Please calculate how many months it will take...

plus de 8 ans il y a

A résolu


Let's make puddings !
We will make puddings with eggs, milk and sugar. To make one pudding, we need one egg, 140(cc) of milk, 15 (g) of sugar. Now W...

plus de 8 ans il y a

A résolu


A kind of decryption
Please convert the vector to letters by referring to the examples below. (eg.1) input vec=[34 1 59] >>> output s='A Z' (eg...

plus de 8 ans il y a

A résolu


Diagonal Pattern
For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

plus de 8 ans il y a

A résolu


Diagonal Pattern
For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

plus de 8 ans il y a

A résolu


Product of Each Column
Given a matrix |mat| with |n| columns, return a row vector |v| of length |n|, where every element in |v| is the product of the |...

plus de 8 ans il y a

A résolu


The twelve days of Christmas
Traditionally there are twelve days of Christmas to celebrate ("Twelvetide"), typically starting with Christmas Day (25 December...

plus de 8 ans il y a

A résolu


Triangle of numbers
Create a matrix with the integers from 1 to |n| arranged in a triangular shape. Every row |i| of the matrix contains |i| inte...

plus de 8 ans il y a

A résolu


Find the average of a random sequance
Write a function that generates random integers within a loop, and calculates the mean of the positive numbers only. At each ...

plus de 8 ans il y a

A résolu


How many Integers?
Count the integers in a given vector |v|. You *must* use a loop to count each element separately. Examples: Input: v...

plus de 8 ans il y a

A résolu


Temperature question
get the temperature...in celcius

plus de 8 ans il y a

A résolu


Create a magic square matrix for a given odd integer
A magic square of size 'N' is a matrix that satisfies the following criterias: # Dimension - NxN # Matrix should contain ALL...

plus de 8 ans il y a

A résolu


Moving Median Absolute Deviation
The median absolute deviation (MAD) is defined as MAD = median(abs(A − median(A))) for a rolling window of length n. For...

plus de 8 ans il y a

A résolu


Eye Squared
For a positive integer |n| create the identity matrix with |n| elements. In case it is not possible to produce an identity ma...

plus de 8 ans il y a

A résolu


Tax Calculator
Calculate the tax for a given income. 10% tax is paid for any income up to $2,000. 20% tax is paid for additional income u...

plus de 8 ans il y a

A résolu


Problem 44444 !!! free beer everyone
just say hallelujah to solve this problem

plus de 8 ans il y a

A résolu


Matrix to vector transformation
given a matrix, make in the output 1 column vector putting odd numbers in ascending order after that put the even numbers in des...

plus de 8 ans il y a

A résolu


free points
function y = your_fcn_name(x) y = x(1)+x(2); end

plus de 8 ans il y a

A résolu


Jack's hand in "Titanic" ♤
Given a series of cards, return true if it's the famous hand. Note that i pretend that poker cards goes from 1 to 10 so be care...

plus de 8 ans il y a

A résolu


Remove the air bubbles from a vector
_*A reduced version of Problem 112*_ Given a column vector v, return a vector w in which all the zeros have "bubbled" to the ...

plus de 8 ans il y a

A résolu


How many days in a month?
Return the number of days in a given month in 2017. If the input is not a valid month number, return -1. Examples: Input...

plus de 8 ans il y a

A résolu


find the logic,easy one
find the logic behind, example x=18 y=306 x=53 y=2756

plus de 8 ans il y a

A résolu


basic finance application
i watch bloomberg everyday and i want to estimate a stock price stability, so i have to calculate the momentum & the rate of cha...

plus de 8 ans il y a

A résolu


remove every row&col for every nan
for a given matrix, remove the row and column of every nan. Example x=[1 2 NaN 4 5 6 7 8 ...

plus de 8 ans il y a

A résolu


Ounces to Kilograms
convert ounces to kilograms, easy

plus de 8 ans il y a

A résolu


lb to kilogram
convert lb to kilogram units, easy

plus de 8 ans il y a

A résolu


what's my tax amount this year ?
given an annual salary x and a tax rate i calculate the amount that you have to pay.Example x = 70000; i=.10 y_correc...

plus de 8 ans il y a

A résolu


short or buy ? take the opportunity
you had already calculated a theoretical stock value, now you checked in bloomberg the quoted price of that stock and you have t...

plus de 8 ans il y a

A résolu


currency converter
given a rate of exchange calculate the equivalent units of 100 USD

plus de 8 ans il y a

A résolu


Sum of adjacent elements in a vector
Given a vector v, return a vector s containting the sum of every two adjacent elements in the vector. Every element s(i) cont...

plus de 8 ans il y a

Charger plus