Community Profile

# Ann Schaefer

43 2019 年以降の合計貢献数

#### Ann Schaefer's バッジ

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

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

Matlab Basics - y as a function of x
Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2

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

Add the input numbers to the original.

free points
function y = your_fcn_name(x) y = x(1)+x(2); end

Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

Bruh
Return 'bruh'.

matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)

Help the Patriots get to the Super Bowl
Given a football by the Patriots, return it to them with 2 psi less air in it. (The original psi is passed as a number to the...

Box!
Given a box, find the volume of the cube. With each side = a.

Times 3 problem
When you enter the number, it should return the number multiplied by 3

Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

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

Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

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

Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

Summation of array
Given an array, Find the sum of all of the elements in it Examples: Input x = [1 2 3 5; 4 5 6 7]; Output y is 33

raise 1/3
Raise a number to 1/3 power.

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

Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

What number has this problem?
This problem is added because it is problem number *???* in the "Community" problems section. <http://www.mathworks.de/matlab...

Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

Back to Basics - Find no. of elements in a matrix?
Let A be a m*n matrix. Find the total no. of elements in A ? (Hint - formula based) A = [1 2 3;4 5 6]; output = 6