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

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

4 years ago

Solved

Determine if input is odd

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

4 years ago

Submitted

Immediate_Neighbors(x)

Function that calculates the sum of the 8 neighboring pixels for every pixel in an image

4 years ago | 0 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...

4 years ago | 1 answer | 0

Solved

Create a Matrix of Zeros

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

4 years ago

Solved

Circle area using pi

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

4 years ago

Solved

radius of a spherical planet

you just measured its surface area, that is the input.

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

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

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

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

4 years ago | 1 answer | 0

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

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

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

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

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

5 years ago | 1 answer | 0

Solved

Pizza!

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

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

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

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

5 years ago