1,242 total contributions since 2015

Solved

Size of this cup?

The given vector has diameter of the cup in mm sampled at micrometer increments in depth from top to bottom, need output in cc a...

12 hours ago

Solved

Fizz Buzz

Given an array of positive, non-zero, integers, return a cell array of strings the same size as the input, where each element in...

12 hours ago

Solved

count to vector

Return a matrix of numbers of dimension K by N, where K = prod(v), and N=length(v). The rows count from a vector of ones up to v...

12 hours ago

Solved

Moving average (variable kernel length)

Find the moving average in a vector. The kernel length is a variable. For example x = 1:10 kernel_length = 2 would r...

12 hours ago

Solved

Sort complex numbers into complex conjugate pairs

Sort complex numbers into complex conjugate pairs. Example: Input x = [3-6i -1-4i -1+4i 3+6i] Sorted output = [-1 - ...

13 hours ago

Solved

Remove entire row and column in the matrix containing the input values

Remove the entire row and column from the matrix containing specific values. The specified value can be a scalar or a vector. Fo...

13 hours ago

Solved

Too Many Zeros, Dump Them!

Sometimes when I create a matrix, I use this syntax: a = zeros(1000,1000); But when the function ends, I find that I don'...

18 hours ago

Solved

Ohm's Law

Well its Ohm's law... So V = IR! I will give two of the three values, such as V and I or I and R and you have to return th...

1 day ago

Solved

Cofactor

Given a matrix, find the cofactor of the element in 'i'th row and 'j'th column.

1 day ago

Solved

Factorial !

Calculate the factorial of a non-negative integer without using the built in function *factorial*

1 day ago

Solved

Calculate the height of an object dropped from the sky

Assume that an object is dropped from 1000 meters above the surface of the earth at time t=0. The object is dropped such that t...

1 day ago

Solved

Make combination of two given matrices.

Make a combination of the two given matrices as a given example. Example: input1 = [1 2 3; 4 5 6]; input2 = [7 8; 9 10...

1 day ago

Solved

CARDS PROBLEM

Read my mind and tell me the card number that I have now in my hands.

1 day ago

Solved

JOIN STRINGS

There are two given strings 'STRING1' and 'STR ING2'.|monospaced|The output should be 'STRING1 STR ING2' or STr1='Sum';STr2='EQU...

1 day ago

Solved

Power The Product

EXAMPLE: INPUT x=10 & y=10 OUTPUT z=1000000 or, INPUT x=2 & y=3 OUTPUT z= 216 you just need to calculate the product first...

1 day ago

Solved

Diagonal & Anti-Diagonal Matrix: Easy

Create a matrix as shown below from "magic" square. For example: if input x=9;then use mgic(x) and create the matrix...

1 day ago

Solved

COUNT VOWEL 2

The objective of this problem is to determine the number of unique vowels used in the given string. Now count vowels in STRI...

1 day ago

Solved

Concatenate matrix into 4 quadrants for given number of iteration

If given a matrix and number, output should be its concatenation like wavelet for given number of iterations. Example a ...

1 day ago

Solved

Square wave average calculation

Given its peak and duty cycle, calculate avg value of square wave

1 day ago

Solved

Average of square wave

given positive and negative peak , calculate dc level, 50% duty cycle

1 day ago

Solved

Calculate the peak value of square wave

Given the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.

1 day ago

Solved

How many bottles can you drink?

Sometimes if you buy a drink in a glass bottle you can return that bottle and get some money back. Let's assume we have "x" a...

1 day ago

Solved

cross in array

Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of arra...

2 days ago

Solved

Which coins to give

I was in shop today. I admired, how shop assistant had to think, which coins to give me. The task is we have a vector v=[0.5 0....

2 days ago

Solved

Basic commands - Greatest common divisor

Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

2 days ago

Solved

Basics - not so easy division

Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...

2 days ago

Solved

angle in regular polygon

Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 ...

2 days ago

Solved

Matrix Generation from Vector Multiplication

Output the matrix generated from multiplying two vectors together

2 days ago

Solved

String Delimination and Outputting

In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...

2 days ago