A résolu


Escape from Planet ....
Given a Planets mass M, and raduis r. Calculate the surface escape velocity and the escape velocity at height h. and the diff...

17 jours il y a

A résolu


Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

17 jours il y a

A résolu


Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

17 jours il y a

A résolu


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

17 jours il y a

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.

17 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...

17 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 ...

17 jours il y a

A résolu


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

17 jours il y a

A résolu


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

17 jours il y a

A résolu


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

17 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...

17 jours il y a

A résolu


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

17 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.

17 jours il y a

A résolu


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

17 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.

17 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 ...

17 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...

17 jours il y a

A résolu


Find the Pattern 1

17 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.

17 jours il y a

A résolu


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

17 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...

17 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

17 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

17 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...

17 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.

18 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...

18 jours il y a

A résolu


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

18 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...

18 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 ...

18 jours il y a

A résolu


ascii value
let input='a' output=97

18 jours il y a

Charger plus