Solved

User defined nextpow function

Create a function which will take 2 arguments as n and x, and return y, where, n^y >= abs(x). [ Similar to builtin "nextpow2" fu...

casi 5 años ago

Solved

Count number of words in string

Count number of words in string Examples 'hi', answer is 1 'hi hi', answer is 2 'I enjoy cody', answer is 3

casi 5 años ago

Solved

multiple of nine?

Given a positive number n, return true if n is a multiple of 9 and false if not. Do not make the division and do not use functio...

casi 5 años ago

Solved

Fix the last element of a cell array

Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

casi 5 años ago

Solved

Find the sum of n squares

What is the sum of the squares of the first n integers?

casi 5 años ago

Solved

Generate vector according to sign of vector

Generate vector according to sign of vector Example: If A=[-2 0 5] then output must be[-1 0 1] meaning that for negative n...

casi 5 años ago

Solved

Test of Quiz

Answer the questions and write in vector. Only one answer is correct. The founder of fuzzy logic is 1a) D. Golberg 1b)...

casi 5 años ago

Solved

metre to feet converter

The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

casi 5 años ago

Solved

Determine the Anti-diagonal of a Magic Square

Determine the anti-diagonal (crossing from top right to lower left) of a magic square of size n. Examples If n = 3 y =...

casi 5 años ago

Solved

Create a matrix with difference of each row of input matrix

With a given input matrix A, create a output matrix B in such a way that each row in B is a difference of rows of input matrix A...

casi 5 años ago

Solved

A quadrant matrix

Write a function called quadrants that takes as its input argument a scalar integer named n. The function returns Q, a 2n-by-2n ...

casi 5 años ago

Solved

Basic commands - amount of inputs

Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

casi 5 años ago

Solved

Mysterious digits operation (easy)

What is this digit operation? 0 -> 0 1 -> 9 121 -> 9 44 -> 6 15 -> 5 1243 -> 7 ...

casi 5 años ago

Solved

Replace values under a limit

For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n. Example x= [ 1 2 3...

casi 5 años ago

Solved

Convert given decimal number to binary number.

Convert given decimal number to binary number. Example x=10, then answer must be 1010.

casi 5 años ago

Solved

Find 100 from a Matrix and Replace With 0 with less computation time

pls use this matrix x = [208 40 167 180 112 70 192 215 90 19 231 100 9 100 97 100 ...

casi 5 años ago

Solved

Sum of series I

What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

casi 5 años ago

Solved

Solve Linear equations

Solve Linear equations Example: x+y=2 and x+2y=3, then x and y equal to 1.

casi 5 años ago

Solved

Sum all integers from 1 to 2^x

Given a number x, your function must return the summation of all integers from 1 to 2^x.

casi 5 años ago

Solved

Conversion from hours to mili sec

Convert given input in hours to mili seconds

casi 5 años ago

Solved

vector to string

Determine what the ASCII characters spell out. Example: input = [ 72 73 71 72] output = 'HIGH'

casi 5 años ago

Solved

MATLAB Basic: rounding

Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

casi 5 años ago

Solved

Cumulative product of a vector

Cumulative product of a vector example x=[1 2 5 10], then answer must be [ 1 2 10 100] *If you like this prob...

casi 5 años ago

Solved

Skip by a multiple

Given an integer create an array of its multiples. Array must have a length of 15

casi 5 años ago

Solved

THE CALCULATOR OF LOVE

In honor of Valentine's Day, program a love calculator that figures out the percentage of compatibility between two people using...

casi 5 años ago

Solved

Reverse a string

Reverse the given string. Example input = 'reverse' output = 'esrever'

casi 5 años ago