Community Profile

photo

Taran


Last seen: 25 Tage vor Aktiv seit 2024

Followers: 0   Following: 0

Statistiken

  • Introduction to MATLAB Master
  • Community Group Solver
  • Solver

Abzeichen anzeigen

Feeds

Anzeigen nach

Gelöst


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

etwa 2 Monate vor

Gelöst


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

etwa 2 Monate vor

Gelöst


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

etwa 2 Monate vor

Gelöst


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

etwa 2 Monate vor

Gelöst


surface of a spherical planet
you just discovered its circumference, that is the input.

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


Total energy

etwa 2 Monate vor

Gelöst


Kinetic energy calculation

etwa 2 Monate vor

Gelöst


Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

etwa 2 Monate vor

Gelöst


Laws of motion 5

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


to the 2 all elements
to the 2 all elements

etwa 2 Monate vor

Gelöst


Converts numbers into characters
Converts numbers into characters

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

etwa 2 Monate vor

Gelöst


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

etwa 2 Monate vor

Gelöst


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

etwa 2 Monate vor

Mehr laden