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

12 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

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

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

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

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

12 jours il y a

A résolu


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

12 jours il y a

A résolu


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

12 jours il y a

A résolu


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

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

12 jours il y a

A résolu


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

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

12 jours il y a

A résolu


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

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

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

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

12 jours il y a

A résolu


Find the Pattern 1

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

12 jours il y a

A résolu


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

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

12 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

12 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

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

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

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

12 jours il y a

A résolu


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

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

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

12 jours il y a

A résolu


ascii value
let input='a' output=97

12 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' ...

12 jours il y a

Charger plus