Risolto


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

10 mesi fa

Risolto


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

10 mesi fa

Risolto


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

10 mesi fa

Risolto


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

10 mesi fa

Risolto


Back to basics 11 - Max Integer
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

10 mesi fa

Risolto


Min of a Matrix
Return the minimum value in the given matrix.

10 mesi fa

Risolto


Determine the square root
Determine the square root of the value the user has entered, n.

10 mesi fa

Risolto


length of a vector
Find twice the length of a given vector.

10 mesi fa

Risolto


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

10 mesi fa

Risolto


Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...

10 mesi fa

Risolto


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

10 mesi fa

Risolto


Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

10 mesi fa

Risolto


Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

10 mesi fa

Risolto


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

10 mesi fa

Risolto


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

10 mesi fa

Risolto


Square a Number
Given an input x, return y, which is equal to the square of x.

10 mesi fa

Risolto


Simple equation: Annual salary
Given an hourly wage, compute an annual salary

10 mesi fa

Discussion


Image format for problem group cover in Cody ?
Hey cody fellows :-) ! I recently created two problem groups, but as you can see I struggle to set their cover images : Prim...

10 mesi fa | 2

Discussion


Gif animations with Matlab
I just wanted here to share a link to some .gif animations I created over the years with Matlab :-) Wikimedia : uploads by Ni...

10 mesi fa | 6

Risolto


Determine if a Given Number is a Triangle Number
*Description:* Determine if the elements of an input array are triangle numbers and return the result as an array with the sa...

10 mesi fa

Risolto


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

10 mesi fa

Risolto


square root
Find the square root (y) of an input (x).

10 mesi fa

Risolto


Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

10 mesi fa

Risolto


Check if inputted variable is a string or a number
Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

10 mesi fa

Risolto


imaginary results
Return the value of the imaginary number i to the power of input argument n.

10 mesi fa

Risolto


modulus of a number
find the modulus of a given number

10 mesi fa

Risolto


Create tangent function out of sin and cos
Please don't use tan(x) directly

10 mesi fa

Risolto


Output a vector which is table of 9
Output a vector which is table of 9

10 mesi fa

Risolto


Set some matrix elements to zero
First get the maximum of each *row*, and afterwards set all the other elements to zero. For example, this matrix: 1 2 3 ...

10 mesi fa

Carica altro