A résolu


Must be in the front row...
You are given a matrix followed by a single number. Your object is to write a script that will shift the matrix around so that ...

environ 8 ans il y a

A résolu


Decimation
When dealing to the Roman Army, the term decimate meant that the entire unit would be broken up into groups of ten soldiers, and...

environ 8 ans il y a

A résolu


function to compute root mean square of first nn positive odd integers
Write a function called odd_rms that returns orms, which is the square root of the mean of the squares of the first nn positive ...

environ 8 ans il y a

A résolu


Concatenate string with cell array of strings
Given a cell array of strings (a), a target string (b), and a target position (ind), return a cell array of strings (c) in which...

environ 8 ans il y a

A résolu


Legend of Zelda - Rupee Count (Item Purchase)
Building off of <https://www.mathworks.com/matlabcentral/cody/problems/3025-zelda-rupee-count Problem 3025>, suppose that an arr...

environ 8 ans il y a

A résolu


Day counter function
Write a function called _day_counter_ that returns the number of Mondays that fell on the first day of the month in a given year...

environ 8 ans il y a

A résolu


World Cup 2018 Prediction!
Which team will be the winner?

environ 8 ans il y a

A résolu


Find the longest match inside two strings
Given two strings, find the longest string which is contained within both strings. e.g. the longest string that is contained ...

environ 8 ans il y a

A résolu


Calculator spelling - Numbers to Letters
Using the numbers on a calculator, and rotating the display 180 degrees, many words can be spelled. In particular, the following...

environ 8 ans il y a

A résolu


Calculator spelling - Letters to Numbers
Using the numbers on a calculator, and rotating the display 180 degrees, many words can be spelled. In particular, the following...

environ 8 ans il y a

A résolu


Legend of Zelda - Rupee Count (Compact)
Building off of <https://www.mathworks.com/matlabcentral/cody/problems/3025-zelda-rupee-count Problem 3025>, suppose that Link's...

environ 8 ans il y a

A résolu


Legend of Zelda - Rupee Count
Rupees are the main currency in The Legend of Zelda games. The value of each rupee is determined by its color. Unfortunately, th...

environ 8 ans il y a

A résolu


Cat, Meowcat and Concatenation
Input is a cell array containing several strings. Find the largest continuous sub-string common to all strings. All strings are ...

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

A résolu


Create cosine function out of sine
Please dont use cos(x) directly

environ 8 ans il y a

A résolu


Find the outcast
All pairs have the same difference except for one. Output the index of the latter Example: input =[0 1; 1 0; ...

environ 8 ans il y a

A résolu


Primes Checker
Given variable inputs Check if they are prime numbers

environ 8 ans il y a

A résolu


Encode Me From The Past
Given this input x = 2, 5, 1, 2, 4, 1, 1, 3 output should be (Five 2's, Two 1's, One 4, Three 1's) [2 2 2 2 2 1 1 4 1...

environ 8 ans il y a

A résolu


Recursion at variable input
input of any length a =2 b =2 c =3 output = (a^b)^c = 64

environ 8 ans il y a

A résolu


Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

environ 8 ans il y a

A résolu


Create tangent function out of sin and cos
Please don't use tan(x) directly

environ 8 ans il y a

A résolu


Create tangent function out of cosine only
Please don't use tangent and sine functions

environ 8 ans il y a

A résolu


Modified run-length companion vector
Given a vector x, return a vector that indicates the run length of any value in x. Each element in output vector shows how many ...

environ 8 ans il y a

A résolu


Create sine function out of cosine
Please don't use sin(x) directly

environ 8 ans il y a

A résolu


Check if a rotated array was originally sorted
Suppose a sorted array is rotated at some pivot unknown to you. For example, |[0 1 2 4 5 6 7]| might become |[5 6 7 0 1 2 4]|. ...

environ 8 ans il y a

A résolu


Perimeter of a quadrilateral
There are four cars starting at a point. The first car points north, the second one points east, the third one points south, an...

environ 8 ans il y a

A résolu


Basic matrix operations using standard MATLAB commands
Create the matrix: 1.0e+15 * 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000...

environ 8 ans il y a

A résolu


convert the number to binary format & count digits
Convert the given number to the corresponding binary format and count the number of digits in that binary number

environ 8 ans il y a

A résolu


subtraction of two nos
given a and b, subtract and give the answer

environ 8 ans il y a

A résolu


Draw 'B'
Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

environ 8 ans il y a

Charger plus