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.

8 jours il y a

A résolu


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

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

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

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

8 jours il y a

A résolu


Find the Pattern 1

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

8 jours il y a

A résolu


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

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

8 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

8 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

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

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

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

8 jours il y a

A résolu


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

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

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

8 jours il y a

A résolu


ascii value
let input='a' output=97

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

8 jours il y a

A résolu


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

8 jours il y a

A résolu


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

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

8 jours il y a

A résolu


vector to string
Determine what the ASCII characters spell out. Example: input = [ 72 73 71 72] output = 'HIGH'

8 jours il y a

A résolu


Return median of a matrix
Compute median of a matrix of any dimension. Exclude the NaNs if any.

8 jours il y a

A résolu


Will there be a new leader?
Simply answer the title.

8 jours il y a

A résolu


Delete 2nd and 5th column of Given 6*6 matrix
Delete the 2nd and 5th columns of the given 6*6 matrix. Example Suppose A = magic(6) 35 1 6 26 19 ...

8 jours il y a

A résolu


Write a string
The answer should be a string that is the value: "I like apples!" (Ignore the quotation marks, just write what is inside the ...

8 jours il y a

A résolu


Reverse a matrix
Its simple. You have to reverse a given matrix.

8 jours il y a

A résolu


03 - Matrix Variables 6
Make _fMat_ be a 5x3 matrix of random integers with values from -3 to 3 (Hint: use *randi*)

8 jours il y a

A résolu


surface of a spherical planet
you just discovered its circumference, that is the input.

8 jours il y a

Charger plus