Community Profile

# Stephanie O'Neil

736 2016 年以降の合計貢献数

#### Stephanie O'Neil's バッジ

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

3年以上 前

find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

3年以上 前

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

3年以上 前

edge detection
write a function that gives the indexes of rising or falling edge x is a vector (assume it contains always at least one eleme...

Next Lower Power of B
Given a number _n_ and a base _B_ greater than 1, return the lowest integer power of _B_ that is less than or equal to _n_. E...

Max index of 3D array
Given a three dimensional array M(m,n,p) write a code that finds the three coordinates x,y,z of the Maximum value. Example ...

UICBioE240 problem 1.2
Convert a column vector into a row vector. So if A = [1; 2; 3] Then B = [ 1 2 3]

Let's get back to school, and create multiplication tables
For a given range, create multiplication tables. (start is always < endno) Example start = 17 endno = 19 Then, ...

Modify an array's elements using other elements
Write a for loop that sets each array element in bonusScores to the sum of itself and the next element, except for the last elem...

Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

Area of a circle
Find the value for area of the circle if diameter is given

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

calculate linear convolution two vectors
for e.g in: a = [1 2 3] b = [4 5 6] out: y = [4 13 28 27 18]

String substitution, sub problem to cryptoMath
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

Remove the Zero
Given an array n, remove all zeros

find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

Matlab Basics II - Create a vector with a repeated entry
Create a row vector of length n, filled with 4's, for example, if n = 3 output = [4 4 4] make sure to round UP when n is a...

Frobenius Norm
Write your own version of Frobenius Norm without using the 'norm' function.

What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

Variable Assignment
Complete the ? part by assigning myExamScore with 100.

Matlab Basics - Logical Tests I
Write a script to test whether a year number is for a leap year or not. eg. x = 1884 output = 1 eg. x = 3 output = 0

Saving MATLAB session to a file
How to save MATLAB session to a file?

Signed Magnitude
For a given input vector, return the value that is furthest from zero. For example, if x = [1 2 -12] return -12.

Are all the three given point in the same line?
In this problem the input is the coordinate of the three points in a XY plane? P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) how can...

Find the position of first minimum value in an integer array with numbers
If x = [2 6 4 9 10 3 1 5 1] the the output should be 7, because the first minimum value (1) lies at the 7th position.

square number
Square a number

Angle between Two Vectors
The dot product relationship, a dot b = | a | | b | cos(theta), can be used to determine the acute angle between vector a and ve...

Array of Ones
Create a 100 X 100 array of ones.

Convert hex color specification to MATLAB RGB
Here's something that comes up all the time if you deal with web pages. Given a <http://www.w3schools.com/html/html_colors.as...