A résolu


Inverse of Hilbert matrix
Given a non-negative integer x, return the element-wise power of 2 of the inverse of Hilbert matrix.

2 jours il y a

A résolu


Just another sum (JAS)
*Task:* Write a function that takes a vector X and returns the alternating sum of X: X(1)-X(2)+X(3)-X(4)+... *Example...

2 jours il y a

A résolu


Return the middle element of an NxN square matrix where N is odd
Let's say you are given an NxN square matrix where N is always going to be an odd number: x = [ 1 2 3 4 5 6 7 8 ...

2 jours il y a

A résolu


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

2 jours il y a

A résolu


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

2 jours il y a

A résolu


Reverse a string
Reverse the given string. Example input = 'reverse' output = 'esrever'

2 jours il y a

A résolu


How many solutions has this problem?
Guess, predict or calculate :-) (You will be scored by the accuracy). Update: <http://www.mathworks.co.uk/matlabcent...

2 jours il y a

A résolu


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

2 jours il y a

A résolu


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0. Use matrix A as a input.

2 jours il y a

A résolu


matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)

2 jours il y a

A résolu


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

2 jours il y a

A résolu


Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

2 jours il y a

A résolu


multiple of nine?
Given a positive number n, return true if n is a multiple of 9 and false if not. Do not make the division and do not use functio...

2 jours il y a

A résolu


Find the Pattern 1

2 jours il y a

A résolu


Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

2 jours il y a

A résolu


Log of a number
Write a script that will give the log of x as output.

2 jours il y a

A résolu


03 - Matrix Variables 2
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3b.png>> A 9x9 matrix of zeros, but with the following v...

2 jours il y a

A résolu


Raise each element to the power of its index in a matrix
In a matrix, A = [1,2;3,4] raise the power of each element like: 1^1+2^3+3^2+4^4 and add it all to produce the result 274

2 jours il y a

A résolu


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

2 jours il y a

A résolu


Power supply: 230V to 115V
The problem is simple: we have a wall outlet which supplies 230V and an apparatus that requires 115V. Software is always chea...

2 jours il y a

A résolu


Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

3 jours il y a

A résolu


Volume of Spherical Shell
In three-dimensional space, a spherical shell can be constructed from two concentric spheres. Determine the volume of a spheric...

3 jours il y a

A résolu


string comparision
compare two strings if both are same return 1 else return 0

3 jours il y a

A résolu


Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

3 jours il y a

A résolu


Remove All elements less than 5
Given an input vector x, remove all elements of x less than 5 . Example: Input x = [ 1 2 5 7 3 ] Output y is [ 5 7 ...

3 jours il y a

A résolu


ascii value
let input='a' output=97

3 jours 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' ...

3 jours il y a

A résolu


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

3 jours il y a

A résolu


y equals x divided by 2
function y = x/2

3 jours il y a

A résolu


Check if a number belongs in the fibonacci squence
Test if integer i is a number in the fibonacci sequence. Return true if it is.

3 jours il y a

Charger plus