Resuelto


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

casi 6 años hace

Resuelto


Delete blanks at the end of string
you got to delete all blank spaces which appears at the end of string

casi 6 años hace

Resuelto


Throw common elements of two vector arrays
Throw common elements as output of two given input vector arrays

casi 6 años hace

Resuelto


Create an array (n,n) where only diagonal elements are '1' and others are '0'
Create an array (n,n) where only diagonal elements are '1' and others are '0' EX: n = 3; then Resultant array would be [ 1 0...

casi 6 años hace

Resuelto


Prime Letters = Removing
Given a string, remove all the letters which in ASCII Code are prime numbers. For Example: s1 = 'Determine which array e...

casi 6 años hace

Resuelto


NO _________ ALLOWED....
So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the...

casi 6 años hace

Resuelto


Card Game
This is an overly simplified and highly modified version of card game Twenty-Nine. A deck of 100 unique cards (hypothetical) ...

casi 6 años hace

Resuelto


Join Strings with Multiple Different Delimiters
The idea is to form the string S by interleaving the elements of a cell array of strings DELIMITER and another cell array of st...

casi 6 años hace

Resuelto


Tax Calculator
Calculate the tax for a given income. 10% tax is paid for any income up to $2,000. 20% tax is paid for additional income u...

casi 6 años hace

Resuelto


Volume of a Simplex
Return the volume of a <http://en.wikipedia.org/wiki/Simplex regular _n_-simplex> with a unit side length. Results are up to...

casi 6 años hace

Resuelto


Minimum Distance between two N-sided Polygons
This Challenge is to determine the minimum distance between two non-overlapping polygons. The input is a cell array of two vecto...

casi 6 años hace

Resuelto


sum of ASCII
Given a string x, return the sum of all ASCII numbers of all characters. for example, if x='lala' ('l'-> 108, 'a'->97) then y...

casi 6 años hace

Resuelto


Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

casi 6 años hace

Resuelto


Avengers Assemble!
Given matrix with so many zeroes, trim those zeroes and output a matrix joining all nnz elements Example: input = [0 0 0 0 0...

casi 6 años hace

Resuelto


Integrate Me
Given polynomial, output the integral (with k = 1 for simplicity purposes) Example: input = [2 1] % 2x+1 output = [1 1 1]...

casi 6 años hace

Resuelto


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

casi 6 años hace

Resuelto


Create a code for XNOR
Given two inputs, output XNOR of those two

casi 6 años hace

Resuelto


BaeIsAlwaysRight
Output yes whatever bae says

casi 6 años hace

Resuelto


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

casi 6 años hace

Resuelto


Area-04
The dimension of a rectangle is given. There are two circles of equal size that are inscribed inside it.The circles are tangent ...

casi 6 años hace

Resuelto


Calculate the sum of elements of n*n Hilbert matrix.
Calculate the sum of elements of n*n Hilbert matrix. For example, for n=5: HilbertMatrix = [1.0000 0.5000 0.333...

casi 6 años hace

Resuelto


Find Euclidean norm of given vector u.
Find Euclidean norm of given vector u. https://en.wikipedia.org/wiki/Euclidean_distance Example x=[1 1] result=sqrt(1^2+1^2...

casi 6 años hace

Resuelto


Find product of eigenvalues of n*n magic matrix.
Find product of eigenvalues of n*n magic matrix. Example n=3 Matrix= [ 8 1 6; 3 5 7; 4 ...

casi 6 años hace

Resuelto


Percentage of zeros in a matrix of only 1s and 0s
Write a function called _zero_stat_ that takes a matrix as an input that only has 0 and 1 elements. The function needs to comput...

casi 6 años hace

Resuelto


easy problem
Find the last element of the array

casi 6 años hace

Resuelto


square a vector-Given the variable x as your input, square it and put the result in y.
function y = (x)squared y = x; end

casi 6 años hace

Resuelto


Convert from integer to binary
if true % decimalToBinaryVector(x) end

casi 6 años hace

Resuelto


Dots in a Circle
Return how many integer grid points there are inside a circle of radius _r_ centred at (0,0) (including points on the edge). ...

casi 6 años hace

Resuelto


Find 100 from a Matrix and Replace With 0 with less computation time
pls use this matrix x = [208 40 167 180 112 70 192 215 90 19 231 100 9 100 97 100 ...

casi 6 años hace

Resuelto


Find out Harmonic mean.
Find out Harmonic mean.

casi 6 años hace

Cargar más