Solved


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

7 years ago

Solved


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

7 years ago

Solved


Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

7 years ago

Solved


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

7 years ago

Solved


given 3 sides, find area of this triangle
1:3 -> 0; 3:5 -> 6

7 years ago

Solved


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

7 years ago

Solved


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

7 years ago

Solved


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

7 years ago

Solved


inner product of two vectors
inner product of two vectors

7 years ago

Solved


Find max
Find the maximum value of a given vector or matrix.

7 years ago

Solved


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

7 years ago

Solved


Will there be a new leader?
Simply answer the title.

7 years ago

Solved


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

7 years ago

Solved


Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...

7 years ago

Solved


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

7 years ago

Solved


Rounding
Round 10.67 and make 'y' equal to that number.

7 years ago

Solved


Reverse a matrix
Its simple. You have to reverse a given matrix.

7 years ago

Solved


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

7 years ago

Solved


Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

7 years ago

Solved


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]

7 years ago

Solved


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

7 years ago

Solved


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

7 years ago

Solved


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

7 years ago

Solved


Complex number
For complex number c=a+bi, write code that will add a and b together.

7 years ago

Solved


Negative matrix
Change the sign of all elements in given matrix.

7 years ago

Solved


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

7 years ago

Solved


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

7 years ago

Solved


Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...

7 years ago

Solved


Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

7 years ago

Solved


Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

7 years ago

Load more