A résolu


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

plus de 10 ans il y a

A résolu


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

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

plus de 10 ans il y a

A résolu


Function definition: Double down.
* Complete the DoubleDown function to return twice the initialValue.

plus de 10 ans il y a

A résolu


The Answer to Life, the Universe, and Everything
A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

plus de 10 ans il y a

A résolu


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

plus de 10 ans il y a

A résolu


Back to basics 26 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of strings of all MATLAB keywords.

plus de 10 ans il y a

A résolu


Replace May with April
For instance, if the input is input_str = 'The flowers may bloom in April'; then the output is output_str = 'The flo...

plus de 10 ans il y a

A résolu


Geometric series
Find the sum, given the first term t1, the common ratio r, and number of terms n. Examples If input t1=1, r=1, n=7 the...

plus de 10 ans il y a

A résolu


Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

plus de 10 ans il y a

A résolu


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

plus de 10 ans il y a

A résolu


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

plus de 10 ans 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 de 10 ans il y a

A résolu


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

plus de 10 ans il y a

A résolu


inner product of two vectors
inner product of two vectors

plus de 10 ans il y a

A résolu


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

plus de 10 ans il y a

A résolu


Simple date to serial no. conversion
Convert a date string to a serial date number. For example if you take x='19-May-2001' then the result is 730990 x...

plus de 10 ans il y a

A résolu


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

plus de 10 ans il y a

A résolu


Polynomial Multiplication
Multiply two polynomial equation.Given polynomial coefficients a and b.

plus de 10 ans il y a

A résolu


Negative Infinity
Round the given array a towards negative infinity.

plus de 10 ans il y a

A résolu


Positive Infinity
Round the array a towards positive infinity

plus de 10 ans il y a

A résolu


Is the light on?
If true , yes; If false , no create a logical vector;

plus de 10 ans il y a

A résolu


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

plus de 10 ans il y a

A résolu


Write an expression
if 1 = 2 2 = 5 3 = 10 4 = ?

plus de 10 ans il y a

A résolu


Sum of series of numbers
Find the sum of numbers from 1-50 using for loop.

plus de 10 ans il y a

A résolu


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

plus de 10 ans il y a

A résolu


simple intrest
Cal simple intrest for given details

plus de 10 ans il y a

Problème


simple intrest
Cal simple intrest for given details

plus de 10 ans il y a | 0 | 8 solveurs

A résolu


Average
Calculate the average of two numbers

plus de 10 ans il y a

Problème


Average
Calculate the average of two numbers

plus de 10 ans il y a | 0 | 10 solveurs

Charger plus