A résolu


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

environ 10 ans il y a

A résolu


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

environ 10 ans il y a

A résolu


Integer indexing array: Weekend box office
The row array movieBoxOffice stores the amount of money a movie makes (in millions of $) for the 7 days of a week, starting with...

environ 10 ans il y a

A résolu


Tree Height
Assign treeHeight with the tree height given the shadow length and angle of elevation. Simple geometry can compute the heigh...

environ 10 ans il y a

A résolu


Multielement indexing of a row array
The row array birthRateChina stores the China birth rate (per 1000 people) for years 2000 to 2012. Write a statement that create...

environ 10 ans il y a

A résolu


MATCH THE STRINGS (2 CHAR) very easy
Match the given string based on first two characters on each string. For example A='harsa'; b='harish'; result '1' ...

environ 10 ans il y a

A résolu


Back to basics 11 - Max Integer
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

environ 10 ans il y a

A résolu


Test if two numbers have the same digits
Given two integers _x1_ and _x2_, return |true| if the numbers written with no leading zeros contain the same digits. That is, t...

environ 10 ans il y a

A résolu


Do Fast Fourier Transformation
Example Fast Fourier Transformation from vector [2,1]) ans = 3 1

environ 10 ans il y a

A résolu


Rounding
Round 10.67 and make 'y' equal to that number.

environ 10 ans il y a

A résolu


Reverse a matrix
Its simple. You have to reverse a given matrix.

environ 10 ans il y a

A résolu


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

environ 10 ans il y a

A résolu


Distance walked 3D
suppose you go from x-y-z coordinates [3,4,2] to [0,0,2] to [0,1,2] to [1,1,2], to [1,1,20] then you walked 25 units of distance...

plus de 10 ans il y a

A résolu


Positive Infinity
Round the array a towards positive infinity

plus de 10 ans il y a

A résolu


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

plus de 10 ans il y a

A résolu


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

plus de 10 ans il y a

A résolu


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

plus de 10 ans il y a

A résolu


Change number representation to HEX
Given a number change it's representation to HEX and output it.

plus de 10 ans il y a

Problème


Change number representation to HEX
Given a number change it's representation to HEX and output it.

plus de 10 ans il y a | 0 | 40 solveurs

Problème


Moore-Penrose pseudoinverse of matrix
Find the command for Moore-Penrose pseudoinverse of matrix and solve

plus de 10 ans il y a | 0 | 37 solveurs

A résolu


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

plus de 10 ans il y a

A résolu


factorial of a number x
Factorial of a number x

plus de 10 ans il y a

A résolu


Permutations of input vector
Find and output all permutations of given vector

plus de 10 ans il y a

Problème


Permutations of input vector
Find and output all permutations of given vector

plus de 10 ans il y a | 1 | 80 solveurs

A résolu


Determine the rank of matrix
Determine the rank of given Matrix

plus de 10 ans il y a

A résolu


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

plus de 10 ans il y a

A résolu


Output a vector which is table of 9
Output a vector which is table of 9

plus de 10 ans il y a

Problème


Output a vector which is table of 9
Output a vector which is table of 9

plus de 10 ans il y a | 1 | 178 solveurs

A résolu


Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands

plus de 10 ans il y a

Problème


Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands

plus de 10 ans il y a | 4 | 414 solveurs

Charger plus