Community Profile

# Stephanie O'Neil

736 total contributions since 2016

View details...

Contributions in
View by

Solved

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

meer dan 2 jaar ago

Solved

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

meer dan 2 jaar ago

Solved

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

meer dan 2 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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]

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar 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.

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

Remove the Zero
Given an array n, remove all zeros

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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.

ongeveer 3 jaar ago

Solved

square number
Square a number

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago

Solved

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

ongeveer 3 jaar ago