A résolu


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

plus d'un an il y a

A résolu


Draw a '0' in a one matrix!

plus d'un an il y a

A résolu


Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

plus d'un an il y a

A résolu


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

plus d'un an il y a

A résolu


Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

plus d'un an il y a

A résolu


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

plus d'un an 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 d'un an il y a

A résolu


Matrix Rotation
Write a MATLAB function that rotates a given matrix by 90 degrees clockwise. The rotation should be performed in-place, without ...

plus d'un an 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 d'un an il y a

A résolu


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

plus d'un an il y a

A résolu


Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

plus d'un an il y a

A résolu


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

plus d'un an il y a

A résolu


Find the Nth Root of a Given Number
Find the Nth root of a given number x. Examples x = 4096 n = 4 y = 8 x = 625 n = 5 y = 3.6239

plus d'un an il y a

A résolu


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Degrees to Radian
Convert degrees to radians

plus d'un an il y a

A résolu


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

plus d'un an il y a

A résolu


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Spherical Volume
Calculate the volume of a sphere.

plus d'un an il y a

A résolu


Calculating Ring Area
In two-dimensional space, a ring can be constructed by using two concentric circles. Determine the area of a ring which has r1 ...

plus d'un an il y a

A résolu


Converts numbers into characters
Converts numbers into characters

plus d'un an il y a

A résolu


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

plus d'un an il y a

A résolu


the average value of the elements
Calculate the average value of the elements in the array

plus d'un an il y a

A résolu


Find the max element of the array
Find the max element of the array

plus d'un an il y a

A résolu


Double all elements in the array
Duplicate all elements in the array

plus d'un an il y a

A résolu


to the 2 all elements
to the 2 all elements

plus d'un an il y a

A résolu


calculate the length of matrix
input 1 array, calculate the length

plus d'un an il y a

A résolu


Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

plus d'un an il y a

Charger plus