Community Profile

photo

Staci


Last seen: 3 months ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Introduction to MATLAB Master
  • Solver

View badges

Feeds

View by

Solved


Area of square
Find the area of a square whose diagonal length is given as x.

1 year ago

Solved


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

1 year ago

Solved


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

1 year ago

Solved


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

1 year ago

Solved


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

1 year ago

Solved


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

1 year ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

1 year ago

Solved


Determine the length of a string of characters
Determine the length of a string of characters

1 year ago

Solved


Find square of given number
Find Square of any number

1 year ago

Solved


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

1 year ago

Solved


Watt
Ampere x Volt = Watt

1 year ago

Solved


Factorial

1 year ago

Solved


Spherical Volume
Calculate the volume of a sphere.

1 year ago

Solved


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

1 year ago

Solved


reverse string
input='rama' output='amar'

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

1 year ago

Solved


Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

1 year ago

Solved


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...

1 year ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

1 year ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

1 year ago

Solved


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

1 year ago

Solved


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

1 year ago

Solved


Convert degrees to radians
Given input in degrees, output to radians

1 year ago

Solved


Give prime Numbers upto n
You are given a input number x; print all the prime numbers less than equal to x.

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

1 year ago

Solved


Transpose of matrix
Transpose of matrix as per test cases

1 year ago

Solved


Convert radians to degrees
Given input in radians, output to degrees

1 year ago

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

1 year ago

Solved


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input is n=4 th...

1 year ago

Solved


Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

1 year ago

Load more