Find the binary code
Given a sinusoidal signal, create a function that returns the binary code of a quantized value. The function takes the bit lengt...
5 years ago
Solved
Genome decoding
Inspired by a question on the answer forum:
You are given a matrix of 8-bit integers which encodes a genome. Each integer can...
How many complete pizzas
x is a vector with numbers of pizza slices. A corresponding vector n indicates in how many slices the pizza slices of x were cut...
5 years ago
Solved
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...
5 years ago
Solved
Calculating the total earnings of a factory
The row vector, prods contains the number of various products manufactured per hour. The second row vector, prices holds values ...
Duration of a trip in minutes
Input is a string which includes the duration of a trip. Convert the duration to minutes.
For example if the duration of a t...
5 years ago
Solved
Odd times even numbers in a matrix
First count the number of odd numbers in x, then the number of even. Return their product.
example:
x = [1 2]
One odd ...
5 years ago
Solved
Make visible max values
Make visible maximum values of rows
input = [1 2 3 4 5;
6 9 8 2 1;
2 1 4 5 8;
1 9 7 9 2];
...
generate capital english alphabets
Based on the numeric input 'n', generate the capital english alphabet starting from A till the english alphabet at the 'n'th pos...