VASUKI G
Last seen: 22 dagar ago
58 total contributions since 2020
VASUKI G's Badges
Solve a problem for the first time
Awarded to VASUKI G on 23 Oct 2020
0 Problems
NUMBER OF BADGES
Filter Contributions in All Answers (0) File Exchange (0) Cody (58) Thingspeak (0) Blogs (0)
Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...
Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'
Split a string into chunks of specified length
Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...
Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...
Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.
Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<https://imgur...
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...
Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...
Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...
Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...
Create a vector
Create a vector from 0 to n by intervals of 2.
Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...
Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.
Find max
Find the maximum value of a given vector or matrix.
Get the length of a given vector
Given a vector x, the output y should equal the length of x.
Inner product of two vectors
Find the inner product of two vectors.
Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.
Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...
Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...
Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...
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...
Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....