A résolu


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

plus de 7 ans il y a

A résolu


Is it column vector?
Is it column vector? Check vector for column vector without using iscolumn function.

plus de 7 ans il y a

A résolu


kmph to mph converter
Convert the speed in miles/hour to km/hour.

plus de 7 ans il y a

A résolu


find a specific element from an matrix
Find the element from matrix which is in 2nd row and 3rd column.

plus de 7 ans il y a

A résolu


Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

plus de 7 ans il y a

A résolu


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

plus de 7 ans il y a

A résolu


Replace odd number in given matrix by zero
Replace the odd numbers in a given matrix with zero. Example A = [ 17 24 1 8 15 23 5 7 ...

plus de 7 ans il y a

A résolu


Create a square matrix of zeros of even order
Create a square matrix of zeros of even order

plus de 7 ans il y a

A résolu


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

plus de 7 ans il y a

A résolu


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

plus de 7 ans il y a

A résolu


Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

plus de 7 ans il y a

A résolu


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

plus de 7 ans il y a

A résolu


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

plus de 7 ans il y a

A résolu


Sum of series V
What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?

plus de 7 ans il y a

A résolu


Rotate a matrix for 180 degree
Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

plus de 7 ans il y a

A résolu


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

plus de 7 ans il y a

A résolu


Corresponding letter to ASCII code.
Given the letter, the output will show the corresponding ASCII code.

plus de 7 ans il y a

A résolu


find the mean of all elements in a matrix
given a matrix, just find the mean of all elements in the matrix

plus de 7 ans il y a

A résolu


sinus function
x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.

plus de 7 ans il y a

A résolu


Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.

plus de 7 ans il y a

A résolu


Small Riddle
Mr. Smith has two children. If the older child is a boy, what are the odds that the other child is also a boy?

plus de 7 ans il y a

A résolu


find whether it is prime or not
For a given number find if its prime

plus de 7 ans il y a

A résolu


Calculating selling price
Cost of a Product is $x What should be the selling price if you want to gain 10%?

plus de 7 ans il y a

A résolu


Find out magnitude of vector
Find out magnitude of vector. Say x=[1 2 3], then answer must sqrt(1^2+2^2+3^2) Please don't use sum function. If you l...

plus de 7 ans il y a

A résolu


Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3, output = [4 4 4] Hint: Search for the function...

plus de 7 ans il y a

A résolu


ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

plus de 7 ans il y a

A résolu


Find remainder when x is divided by 3
Find remainder when x is divided by 3

plus de 7 ans il y a

A résolu


first element of matrix
find the first elements of a column matrix

plus de 7 ans il y a

A résolu


multiply an array by its position number
You have given an array. Multiply an array by its position number

plus de 7 ans il y a

Charger plus