Resuelto


Replace x value into y value in string text.
Replace x value into y value in string text. Example text='Hello World' x='World', y='Universe' result='Hello Universe'.

casi 10 años hace

Resuelto


Repeat the entries of the vector to their reference times in the vector.
e.g for input x: [ 7 3 9 5] output y: [ 7 3 3 9 9 9 5 5 5 5]

casi 10 años hace

Resuelto


Create cell array of numeric arrays
Convert the input to a cell array, but only if necessary. If the input is a numeric array, return a 1-by-1 cell array contain...

casi 10 años hace

Resuelto


Calculate the hypotenuse of a right triangle without using ^ and sqrt ()
Find out the hypotenuse of right triangle. Say a = 4, b = 3 then c = 5 Please don't use ^ and sqrt() function.

casi 10 años hace

Resuelto


Pointwise multiplication of vectors.
Pointwise multiplication of vectors x and y. Example x= [1 3 5 7 9 11 13 15 17 19] y=[ 1 4...

casi 10 años hace

Resuelto


Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

casi 10 años hace

Resuelto


volume of torus
Find volume of torus with a as major radius and b as minor

casi 10 años hace

Resuelto


Create cell array of strings
Convert the input to a cell array, but only if necessary. If the input is a string, return a 1-by-1 cell array containing the...

casi 10 años hace

Resuelto


Return the names and values of the input arguments of a function
Given a function name, return the names and values of the input arguments. e.g. function_name(arg1, arg2) is a function de...

casi 10 años hace

Resuelto


Dice roll - lateral faces
For this problem, you will be provided with the values of a dice roll (regular six-sided dice). The number of dice will be at le...

casi 10 años hace

Resuelto


Set x value to each odd index of vector y.
Set x value to each odd index of vector y.

casi 10 años hace

Resuelto


Back to Basics - New Data Type in R2016b - convert a char to a string
Convert an char array into a string.

casi 10 años hace

Resuelto


design a magic matrix without using the command magic.
Like magic(4) = 16 3 2 13;5 10 11 8;9 6 7 12;4 15 14 1

casi 10 años hace

Resuelto


De-primed
Write a function that will multiply every prime number in the array or matrix by two, leaving all other numbers the same, and re...

casi 10 años hace

Resuelto


Xor of matrix
you have to set exclusive OR of two arrays

casi 10 años hace

Resuelto


Triple function composition
Given three functions f,g and h, create the composed function y=f(g(h)). Example f = @(x) x+1 g = @(x) x/2 h = @(x) ...

casi 10 años hace

Resuelto


Rule of mixtures (composites) - upper bound
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

casi 10 años hace

Resuelto


Form a gaussian kernel using matrix size and sigma value
For example matrix = 3; sigma = 1.2; Gaussian kernel = [1 2 1; 2 2 2; 1 2 1]; ...

casi 10 años hace

Resuelto


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

casi 10 años hace

Resuelto


Display positive elements of matrix.
Display positive elements of matrix.

casi 10 años hace

Resuelto


Nth root
Nth root of a number x

casi 10 años hace

Resuelto


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

casi 10 años hace

Resuelto


Create a constant offset.
Add a constant offset to an array. For example: a=[1 3 5 9]; offset=2; y=[3 5 7 11];

casi 10 años hace

Resuelto


Rank of matrix
Find the rank of given matrix

casi 10 años hace

Resuelto


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

casi 10 años hace

Resuelto


Pad zero between every adjacent values of the vector.
you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

casi 10 años hace

Resuelto


Zero Cross
Write a function that counts the number of times n a signal x crosses zero or changes sign. Examples x = [1 2 -3 -4 5 6 ...

casi 10 años hace

Resuelto


iteration of N blank spot
we have N spot which can be blank o filled calculate the number of iteration for these spots. e.g. N=2 1- blank blank 2- bl...

casi 10 años hace

Resuelto


Accessing values in a cell
You are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors. Your job is to give the bth value in t...

casi 10 años hace

Resuelto


Divide elements by sum of elements
In this problem, I ask you to write a function which will divide the elements of each column by the sum of the elements of the s...

casi 10 años hace

Cargar más