A résolu


Matrix Construction I
Given n, construct a matrix as shown in the example below. Example For n=8, the output should look like this: 1 2 3 4 ...

plus de 5 ans il y a

A résolu


Create a magic square matrix for a given odd integer
A magic square of size 'N' is a matrix that satisfies the following criterias: # Dimension - NxN # Matrix should contain ALL...

plus de 5 ans il y a

A résolu


Average of odd values
Find the average of odd values in given a matrix. e.g x=[ 4 11 8 ; 9 2 7 ] y =( 11 + 9+ 7 ) / 3

plus de 5 ans 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...

plus de 5 ans il y a

A résolu


Average of even-numbered columns
Given a vector, find the average of even-numbered columns. e.g x = [ 4 6 8 9 1 2 7 ] y = ( 6 + 9 + 2 ) / 3

plus de 5 ans il y a

A résolu


Delete the column with all 0 !
Delete the column with all 0 data in a matrix(x). e.g. input x = 1 0 0 4 5 0 7 0 ...

plus de 5 ans il y a

A résolu


prime to each other
Given two integers n1, n2 greater than 1, find out if they have common divisors or are prime to each other. Return "true" if the...

plus de 5 ans il y a

A résolu


Create a New_Word
The output of the function is a new word created from the word entered into the function. The new word is created by deleting th...

plus de 5 ans il y a

A résolu


Joules to Megatons of TnT
Given joules, J, make a function that converts to megatons of TNT.

plus de 5 ans il y a

A résolu


Energy-Mass Equivalence
Given input enegy of the object, E, and constant c = 300,000,000, find the mass of the object.

plus de 5 ans il y a

A résolu


delta x

plus de 5 ans il y a

A résolu


Set x value to each odd index of vector y.
Set x value to each odd index of vector y.

plus de 5 ans il y a

A résolu


find the index of a number

plus de 5 ans il y a

A résolu


Distance Travelled by Vehicle

plus de 5 ans il y a

A résolu


Given a matrix A (size m x n) create a matrix B (size m+2 x n+2) which consists of matrix A surrounded by zeros. See Example below:
A = [1 2 3 4 5 6] ----------- B = [0 0 0 0 0 0 1 2 3 0 0 4 5 6 0 0 0 0 0 0]

plus de 5 ans il y a

A résolu


Given a matrix A (size m x n) create a matrix B which consists of matrix A sorted in descending order by columns and then by rows.
--------------- A= [ 2 6 -3 7 12 0 -12 5 1] --------------- B= [12 7 1 6 2 0 5 -3 ...

plus de 5 ans il y a

A résolu


basic finance application
i watch bloomberg everyday and i want to estimate a stock price stability, so i have to calculate the momentum & the rate of cha...

plus de 5 ans il y a

A résolu


Ounces to Kilograms
convert ounces to kilograms, easy

plus de 5 ans il y a

A résolu


what's my tax amount this year ?
given an annual salary x and a tax rate i calculate the amount that you have to pay.Example x = 70000; i=.10 y_correc...

plus de 5 ans il y a

A résolu


lb to kilogram
convert lb to kilogram units, easy

plus de 5 ans il y a

A résolu


short or buy ? take the opportunity
you had already calculated a theoretical stock value, now you checked in bloomberg the quoted price of that stock and you have t...

plus de 5 ans il y a

A résolu


Matrix to vector transformation
given a matrix, make in the output 1 column vector putting odd numbers in ascending order after that put the even numbers in des...

plus de 5 ans il y a

A résolu


find the relation...
if given input is 1, output is 4. if input is 55, output is 3136.

plus de 5 ans il y a

A résolu


print

plus de 5 ans il y a

A résolu


Saving MATLAB session to a file
How to save MATLAB session to a file?

plus de 5 ans il y a

A résolu


Palindrome Check
Check whether the entire matrix is palindrome or not. Example matrix = [7 8 7] matrix_reverse = [7 8 7] So the mat...

plus de 5 ans il y a

A résolu


find out eigenvector of matrix
find out eigenvector of matrix A =eye(3); Answer is [0 0 1; 0 1 0; 1 0 0];

plus de 5 ans il y a

A résolu


Find Logic 21

plus de 5 ans il y a

A résolu


Find Logic 22

plus de 5 ans il y a

Charger plus