Community Profile

photo

Matthew Schneck


Virginia Commonwealth University

Active since 2014

Followers: 0   Following: 0

Message

Statistics

All
  • First Review
  • First Submission
  • Thankful Level 1
  • First Answer
  • Solver

View badges

Feeds

View by

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

8 years ago

Solved


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

8 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

8 years ago

Submitted


Immediate_Neighbors(x)
Function that calculates the sum of the 8 neighboring pixels for every pixel in an image

9 years ago | 2 downloads |

Question


How can I generate a "movie" using a series of binary images?
I have a 3-D matrix where each x-y plane defines a binary image. variable(:,:,1) calls image one; variable(:,:,2) is image 2...

9 years ago | 1 answer | 0

1

answer

Solved


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

9 years ago

Solved


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

9 years ago

Solved


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

9 years ago

Solved


radius of a spherical planet
you just measured its surface area, that is the input.

9 years ago

Solved


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

9 years ago

Solved


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

9 years ago

Solved


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

9 years ago

Question


How do I individually calculate the area of each enclosed space within a binary image?
I have a binary image with multiple enclosed, assumed to be circular, areas and would like to calculate the enclosed areas indiv...

9 years ago | 1 answer | 0

1

answer

Answered
how to calculate the area of the segmented region?
You can calculate the area of a segmented image using the regionprops function: area = regionprops(your_image_name , 'Area'...

9 years ago | 0

Answered
How do I convert data stored in a variable as a matrix to an excel file?
There is a built-in function that can do this for you called 'xlswrite'. It is much better than transcribing numbers by hand. ...

9 years ago | 0

Question


How to call a function with a GUI push button
I would like to create a GUI that performs a set of specified operations (defined in a separate function) on an image chosen by ...

9 years ago | 1 answer | 0

1

answer

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

9 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

9 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

9 years ago